WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Modify the head of any WYSIWYG page
  • Print
Pages: [1]   Go Down

Author Topic: Modify the head of any WYSIWYG page  (Read 6392 times)

Offline Nicky

  • Posts: 94
  • Gender: Male
Modify the head of any WYSIWYG page
« on: October 30, 2011, 10:10:08 PM »
Hi WB

Perhaps this has already been answered, but if not, an idea for the next WB release?

Would it be possible to, when adding a new WYSIWYG page, modify the head section of that particular page. Of course, this can be done site-wide but I have not found a way to do this for a single page or for a few pages of a WB site.

Here's a real example. I have a WB site of 149 pages. One of those pages is all about halloween and local scary events  :-)  I have some very neat and scary javascript bats flying around the page but as I needed to add part of the script to the head, it affects all the pages on the site. It's not a big issue, as it all about spooky fun, but it's not really appropriate having flying bats on some of that site's pages! :-D

This head mod might help too by being able to install different page-metas as opposed to the site-wide default.

Any ideas?

Regards, Nicky.
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #1 on: October 30, 2011, 10:20:42 PM »
I don't suppose you mean this here: http://www.websitebaker2.org/en/help/user-guide/working-with-wb/pages-administration/change-settings.php

cheers

Klaus
Logged

Offline Nicky

  • Posts: 94
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #2 on: October 30, 2011, 10:32:01 PM »
Hi Klaus

Yes, that's it exactly! Adding a field to modify the data between the <head> and </head> of that particular page to override the general site settings would be super!

Nicky



Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #3 on: October 30, 2011, 10:49:39 PM »
if i understood you, in my point of view is to create a page module. it's the easiest way and it isn't needed to change the core.

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #4 on: October 30, 2011, 10:57:08 PM »
Nicky,

if that is what you need, I suggest you read the help-page because what I linked is what we already have.  :roll:

cheers

Klaus
Logged

Offline Nicky

  • Posts: 94
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #5 on: October 30, 2011, 11:00:13 PM »
Hello Dietmar

Yes, I guess so.

Regards, Nicky

ps. Noting how keywords meta data is now ignored by the search engines, is it worth having that keywords field in the page settings any more?

   
Logged

Offline Nicky

  • Posts: 94
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #6 on: October 30, 2011, 11:02:41 PM »
Hi Klaus

I did read it. But I could not see a field for modifying the head section of that page.

Nicky
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Modify the head of any WYSIWYG page
« Reply #7 on: October 30, 2011, 11:19:32 PM »
So you what exactly do you want to customize? Just saying "the data between the head-tags" is quite a wide explanation. You could for instance use the complete WEBSITE_HEADER function to achieve what you want and put the required meta-tags in the header field and you have achieved what you want. In the site wide option you put the sidewide tags ... in the page options you put the page wide tags. You'd need to put ALL tags in there ... or just the ones which are supposed to differ.

Have a look here at the functions WB offers you ... you might find something interesting there ;)
http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php

In general, be a bit imaginative, you can achieve quite some good things with WB, more than you might think of at first  :-D

cheers

Klaus
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Modify the head of any WYSIWYG page
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2