How to show specific CP inside template?

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

How to show specific CP inside template?

Post by baklavoni »

Hello,

I wonder how to show (link) existing CP inside my template. Tried to find on phpwcms-docu, but without success...

To be more clearer, I'll try to explain:
I have structure already made and some test articles inside all structure of my site.
Some of articles need to have some CPs exactly the same, and this is linked with contentpart alias. This is working great! Thanks Oliver ;)

Problem is that on one structure level, those contentpart alias aren't shown. Below is structure level's settings:
top article count: 5
pagination: YES (paginate articles)
articles per page: 5

I figured out how to show those CPs, but I need to include them inside my template (which is now the only template).
But I dont know which RT I need to use inside my template.

Here are the links:
This is not OK.
http://radiom.net/wcms/index.php?vijesti

This is OK!
http://radiom.net/wcms/index.php?aid=2

Anyone have idea?

Thanks in advance.

Best regards!
There is no page like home page...
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: How to show specific CP inside template?

Post by sustia »

Hi, the {SHOW_CONTENT:CP,...} RT should solve your problem...maybe this thread is useful for you:

http://forum.phpwcms.org/viewtopic.php? ... &sk=t&sd=a

Especially take a look at this post of flip-flop:

http://forum.phpwcms.org/viewtopic.php? ... d=a#p98512
Campeones del mundo!
Vegetables!
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: How to show specific CP inside template?

Post by baklavoni »

Thanks, will try to implement... (I'll let you kow is it working)
Thanks for fast answer!!! 3 minutes... WOW :)

EDIT:

That is it!
It is working!

Thanks a lot!!!

:D
There is no page like home page...
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: How to show specific CP inside template?

Post by sustia »

You are welcome :)

thanks to flip-flop for the hint :wink:
Campeones del mundo!
Vegetables!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: How to show specific CP inside template?

Post by Jensensen »

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 02:25, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: How to show specific CP inside template?

Post by baklavoni »

Jensensen wrote: or to setup an --> invisible category / site structure level with a lot of CP's in there for multiple needs and recalled by {SHOW_CONTENT} [see sustia above]
This is great idea!!! :) Will try it for sure ;)
Jensensen wrote: and/or custom content blocks
or custom nested content blocks
This I need to figure how to do it. Idea is great! But my realization is questionable right now... :mrgreen:
Anyway, this is something I need to do! Definetly!!! ;)

Here is one site I made ( http://www.masine.ba ).
Right now, every block (pictures, and text) are in fact a html, made outside phpwcms, and inserted as html CP.
I know, this is the most supidious way to do it :oops: , but then, when I made this site, I didn't have enough time to figure out how to make custom CP blocks.
There is a need to make custom CP blocks for this site.
Be ready for some tips :) I'll ask if I stuck with this... :D
Jensensen wrote: BTW: [sorry for being cautionary] such questions belong NOT to hacks & enhancements BUT rather to --> Support English: http://forum.phpwcms.org/viewforum.php?f=1
Sorry for this... :oops:
Hope there is moderator. She/He will have a lot work cleaning posts after me :(

Thanks :wink:
There is no page like home page...
Post Reply