WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: sayf_theone on October 25, 2009, 12:29:17 PM

Title: code snippets
Post by: sayf_theone on October 25, 2009, 12:29:17 PM
hi all!

i want to make a snippets code to get a page title and a little of the page's text ( or add a input text in admin page control to have the text from there)

and put the snippet  in the template and show the snippets randomly.

thanks all :-)
Title: Re: code snippets
Post by: erpe0812 on October 25, 2009, 02:20:58 PM
and the question is..........?
Title: Re: code snippets
Post by: sayf_theone on October 27, 2009, 05:43:52 PM
How can i do that? any one can help?cx
Title: Re: code snippets
Post by: marathoner on October 27, 2009, 07:28:58 PM
Still not really sure what you want. Do you want the page title of the current page...or some random page? If you want to display 'a little of the pages text' should we assume that all pages have a WYSIWYG section? Other sections? Do you want to display the snippet randomly or to have the snippet display the output from random pages? It's hard to answer a such a vague question...please be much more specific.
Title: Re: code snippets
Post by: sayf_theone on October 28, 2009, 09:53:27 AM
I don't want the page title of the current page

I want to snippet display the output from random pages WYSIWYG .

Thank you all
Title: Re: code snippets
Post by: erpe0812 on October 28, 2009, 10:36:23 AM
And why don't you use the  droplet random_wysiwyg  for this?
Title: Re: code snippets
Post by: sayf_theone on October 28, 2009, 11:43:24 AM
Because i want to put it in the template.

Title: Re: code snippets
Post by: erpe0812 on October 28, 2009, 11:50:24 AM
Do it...........
Title: Re: code snippets
Post by: WebBird on October 28, 2009, 02:35:48 PM
Quote from: sayf_theone on October 28, 2009, 11:43:24 AM
Because i want to put it in the template.

That's what a droplet is for. :-D (Among others...)