GetSimple Support Forum

Full Version: Adding a Suffix to Component Name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
:-)
Solution / Answer can be found here: http://get-simple.info/forum/post/24014/#p24014
Thanks to mvlcek!
:-)