Monday, 15 June 2015

codeigniter - PyroCMS: How to include one page inside another -


I have a site with "About Us" page which is divided into several sections.

  About Us + Overview + Company + Our Services + Future Plans (etc.)   

Let me block one of these pages on the right hand To be a block in which the links are included in every other page. Ideally, what I want to do is create a page named AboutUsSidebar, and then be able to include this page in all types of tags via any type of tag, i.e. ..

  {insert ('sidebar')}   

Is there anything like this in PyroCMS? Or maybe a better way of doing this?

You should see a partial view.

Make it the sidebar with your HTML and add it to the ADONS / Share_Adocs / Themes / your theme / view / partial / sidebar. Save in HTML and then you can add it to your layout:

  {{subject: partial name = "sidebar"}}    

No comments:

Post a Comment