Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding multiple get_component( );
#11
(2014-02-13, 22:49:25)Timbow Wrote: I wouldn't see the need to copy and paste. You are right that in GS the page content is written in an xml file and the 'slug' is the filename of that file. It is also the last part of the url if you are using seo friendly 'fancy urls'. Components are not stored as individual files in quite the same way.

I tried to give one slug to two pages and the system automatically added an appendix to the slug.

I used your example "right-column" and added this in the template <?php getPageContent('right-column'); ?> .

I created a text page with this slug and it appeared in the right sidebar.

I created a second page and added the same slug (right-column) in the options.

After saving there was "right-column-1" in the slug field and this page didn't appear in the sidebar.
Reply


Messages In This Thread
Adding multiple get_component( ); - by cyberviews - 2014-02-13, 19:13:03
RE: Adding multiple get_component( ); - by Timbow - 2014-02-13, 22:35:52
RE: Adding multiple get_component( ); - by Timbow - 2014-02-13, 20:57:59
RE: Adding multiple get_component( ); - by Timbow - 2014-02-13, 22:21:25
RE: Adding multiple get_component( ); - by Timbow - 2014-02-13, 22:49:25
RE: Adding multiple get_component( ); - by cyberviews - 2014-02-13, 22:55:30



Users browsing this thread: 2 Guest(s)