Welcome, Guest. Please login or register.
March 20, 2010, 11:00:28 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 released!
Download and additional information are available here .
110510 Posts in 15959 Topics by 9307 Members
Latest Member: fiekstenres
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Archive (posts up to 2007) (Moderators: Argos, BerndJM)
| | |-+  template-code that renders current URL
Pages: [1] Go Down Print
Author Topic: template-code that renders current URL  (Read 962 times)
theAlien01

Offline Offline

Posts: 14


« on: September 16, 2006, 01:33:49 PM »

Hi

I'm quite new to WebsiteBaker (and php). So i'm not sure if this is then right forum to post this question (otherwise, please move it to the right forum).

I would like to have the main heading of the page automaticaly linking to the current page.
I guess the output HTML should look something like this:

Code:
<h1><a href="/current_URL.php">current page title</a></h1>

So for my template i'm looking for some code that only renders the current URL.
Is this possible?

theAlien
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5560


WWW
« Reply #1 on: September 16, 2006, 08:24:23 PM »

have a look at the show_menu2 function, I think it does, what you want ...

http://code.jellycan.com/show_menu2/

The subfunction Breadcrumbs is what you want ... you can even define the way it outputs the code ...

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
theAlien01

Offline Offline

Posts: 14


« Reply #2 on: September 17, 2006, 05:19:58 PM »

hi Klaus  smiley

Tnx for your reaction. Show_menu2 is what I've been thinking about.

I'm still not sure if it does exactly what i'm looking for. But I'll give it another try. Maybe I should replace menu_title by page_title. Or otherwise it's really complicated and maybe even a core-issue.

The best thing would be when the textmoderator types in WYSIWYG a <H1>-text, and it becomes in the layout automatically a link to the current page (and still remains the <H1>-text). But the more I think about it, the more complicated it seems to be, so maybe I have to tell them it's impossible.

tnx again,
theAlien
Logged
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!