Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a Suffix to Component Name
#1
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
:-)
Reply
#2
Solution / Answer can be found here: http://get-simple.info/forum/post/24014/#p24014
Thanks to mvlcek!
:-)
Reply




Users browsing this thread: 1 Guest(s)