Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 01:38:03 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21713 Topics by 7738 Members
Latest Member: Pattieardathfe
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: code snippets  (Read 915 times)
sayf_theone

Offline Offline

Posts: 21


« 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 smiley
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #1 on: October 25, 2009, 02:20:58 PM »

and the question is..........?
Logged

sayf_theone

Offline Offline

Posts: 21


« Reply #2 on: October 27, 2009, 05:43:52 PM »

How can i do that? any one can help?cx
Logged
marathoner

Offline Offline

Posts: 495


« Reply #3 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.
Logged
sayf_theone

Offline Offline

Posts: 21


« Reply #4 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
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #5 on: October 28, 2009, 10:36:23 AM »

And why don't you use the  droplet random_wysiwyg  for this?
Logged

sayf_theone

Offline Offline

Posts: 21


« Reply #6 on: October 28, 2009, 11:43:24 AM »

Because i want to put it in the template.

Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #7 on: October 28, 2009, 11:50:24 AM »

Do it...........
Logged

WebBird
Guest
« Reply #8 on: October 28, 2009, 02:35:48 PM »

Because i want to put it in the template.

That's what a droplet is for. grin (Among others...)
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!