2012-03-05, 11:49:26
Hi!
I'm loading components "dynamicaly" by using this line of code:
<?php get_component((string) return_page_slug()); ?>
... so i just have to name the component the same as the page(-slug.php) like:
Page Slug / URL:
page-slug.php
Component:
page_slug
Now i want to add a "suffix" to the component, otherwise i can't load more than one component at a time.
Something like this:
Page Slug / URL:
page-slug.php
Component:
page_slug_position1
page_slug_position2
page_slug_position3
Coul'd anyone please help me by enhancing the line of code above ^? Four Hours of goOoo... and trial and error - i just don't get it. :-(
Greets & Thanks from Germany,
Rob
:-)
I'm loading components "dynamicaly" by using this line of code:
<?php get_component((string) return_page_slug()); ?>
... so i just have to name the component the same as the page(-slug.php) like:
Page Slug / URL:
page-slug.php
Component:
page_slug
Now i want to add a "suffix" to the component, otherwise i can't load more than one component at a time.
Something like this:
Page Slug / URL:
page-slug.php
Component:
page_slug_position1
page_slug_position2
page_slug_position3
Coul'd anyone please help me by enhancing the line of code above ^? Four Hours of goOoo... and trial and error - i just don't get it. :-(
Greets & Thanks from Germany,
Rob
:-)