Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 11:26:05 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.
149635 Posts in 21099 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: template-code that renders current URL  (Read 1147 times)
theAlien01

Offline Offline

Posts: 14


« on: September 16, 2006, 12: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: 6819


WWW
« Reply #1 on: September 16, 2006, 07: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

WebsiteBaker Org e.V. - for WebsiteBaker

theAlien01

Offline Offline

Posts: 14


« Reply #2 on: September 17, 2006, 04: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.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!