Adding a Suffix to Component Name - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Adding a Suffix to Component Name (/showthread.php?tid=2872) |
Adding a Suffix to Component Name - Robzilla - 2012-03-05 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 :-) Adding a Suffix to Component Name - Robzilla - 2012-03-05 Solution / Answer can be found here: http://get-simple.info/forum/post/24014/#p24014 Thanks to mvlcek! :-) |