Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:06:28 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: section anchor in 2.7  (Read 2461 times)
diodak

Offline Offline

Posts: 85


« on: April 28, 2008, 12:03:12 PM »

Hello, how can I disable section anchors in 2.7?
Logged

Buchsbaum
thorn

Offline Offline

Posts: 980


WWW
« Reply #1 on: April 28, 2008, 06:08:42 PM »

Hello

if you mean these anchors:
Code:
<a id="wb_section_12" name="wb_section_12"></a>
There is no config-element to do that...

If you really don't want them, you have to alter framework/frontend.functions.php
around line 217.

thorn.
Logged

diodak

Offline Offline

Posts: 85


« Reply #2 on: April 28, 2008, 08:09:05 PM »

You helped me, thanks.
Logged

Buchsbaum
Swon

Offline Offline

Posts: 28



WWW
« Reply #3 on: May 04, 2008, 04:36:55 PM »

What is the purpose of these anchors?
It f***es up my google sitemaps Smiley ?

Can you just remove it whitout errors?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: May 04, 2008, 04:41:23 PM »

Hello,

Quote
What is the purpose of these anchors?

Using the menu Link modul allows you to link not only to pages it also allows you to link to a specified section of a page. Very helpfull if you have more then one section on a page.

Matthias
Logged
Swon

Offline Offline

Posts: 28



WWW
« Reply #5 on: May 04, 2008, 04:47:19 PM »

It might be so, but you cant make a valid xml sitemap with that section in the start Smiley
Thanks for the explanation..
Logged
dennisvr

Offline Offline

Posts: 20


« Reply #6 on: May 20, 2008, 05:57:53 PM »

Hi,

I would also like to disable the anchor and tried changing the php file as suggested. Unfortunately unsuccesful.

Has anybody removed the anchors (an "on/off" might be useful in a future release)?

Thanks for your help.

Regards,
Dennis

P.s. Why do I want to remove the anchors?

I use an additional content block to change my template from backend.

How this works:
- create one template

- style various background images in the <head>:
  background-<?php page_content(2); ?>.png

- insert a "code" block below the "WYSIWYG block"

- create various images, such as:
  background-.png (the default)
  background-home.png
  background-news.png etc.

- the user can type "home" or "news" and the appropriate backgound is loaded
Logged
ngcat

Offline Offline

Posts: 6


« Reply #7 on: July 29, 2008, 05:45:20 AM »


I use an additional content block to change my template from backend.

How this works:
- create one template

- style various background images in the <head>:
  background-<?php page_content(2); ?>.png

- insert a "code" block below the "WYSIWYG block"

- create various images, such as:
  background-.png (the default)
  background-home.png
  background-news.png etc.

- the user can type "home" or "news" and the appropriate backgound is loaded

Sounds like an interesting idea and is just what I needed for a current project.
To make this work you:
- Uncomment line 217 in frontend.functions. php:
Code:
//                echo "<a id=\"wb_section_$section_id\" name=\"wb_section_$section_id\"></a>";
- in the code block use the echo function:
Code:
echo "home";

There you have it, works like a charm!
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!