close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Site Sculptor - Adding New Page from Template, Linking the new page

Thread began 8/30/2010 12:06 pm by rsawyer341759 | Last modified 9/08/2010 1:16 pm by rsawyer341759 | 2667 views | 10 replies |

rsawyer341759

Site Sculptor - Adding New Page from Template, Linking the new page

I have created a site that let's me add pages from templates within Admin. I have no problem adding content pages using the green plus sign next to the page. However, when I add content to the created page, the original page displays content from the created page. I have looked in the Content database, and both the new page and original exist there. However, when I browse the pages, the new content replaces the original.

Also, how do you link the new created page to the other pages when the problem has been resolved? There seems to be no easy way to link newly created pages. I could obviously circumvent this through coding and FTP, but the CMS is set up for client use, as the client will want and need to add pages. The reference in the help section is vague, and the page name does not show up in the editor link dialog.

Thanks,

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

RichardsonIntl

Re: Site Sculptor - Adding New Page from Template, Linking the new page

Originally Said By: rsawyer341759
  I have created a site that let's me add pages from templates within Admin. I have no problem adding content pages using the green plus sign next to the page. However, when I add content to the created page, the original page displays content from the created page. I have looked in the Content database, and both the new page and original exist there. However, when I browse the pages, the new content replaces the original.

Also, how do you link the new created page to the other pages when the problem has been resolved? There seems to be no easy way to link newly created pages.  



We're having exactly the same problem and are awaiting a response.

Sign in to reply to this post

saf01

Hi. Please advise, as this is the only obstacle in site designs using site scultptor themes, when you add a new dynamic page it overtakes the orginal content. thnaks

Sign in to reply to this post

Jason ByrnesWebAssist

With a site template, once you add template pages, the original template content is overridden by the page. The higher level template item will not be visible, only the lower level pages created from the template.


The pages created will not be add to the navigation, it is not dynamic, you will need to add the pages to the navigation manually.

When a page is created from the template, you can access that pages contents through a querystring.


lets say as an example that I set the directors.php page to be a template. I can get to the individual pages using the page name as a querystring and passing a number for the page:
directors.php?directors=1

or
directors.php?directors=2

Sign in to reply to this post

rsawyer341759

Possible New Page Creation Solution - Site Sculptor

Jason,

Thanks for the clarification. While you explained it quite well during our conversation, the admin section of the Site Sculptor has the end-user in mind, since all of us designing sites using the extension are using Dreamweaver. As you also stated, the documentation on creating pages in the help section is incorrect. Thanks for forwarding this issue to the documentation team.

I have found what I think is an elegant solution to this. Your answer below was very helpful in giving an understanding of what the extension is doing, and with some very minor code tweaks, we developers can get what we need in terms of non-menu page creation. The steps are simple:

(1). Find the folder "CSSMenuWriter". There are three subfolders that refer to navigation for the Admin, Home and Content pages. Ignore the Admin navigation folders.

(2). In the Home and Content menu folders, find the menu.php file.

(3). Find the files you made the templates editable (indicated by the green plus button).

(4). Add to the end of the file: ?menuHeader=\", where "menuHeader is the page name of your editable page. Using your example below, the PHP code would look like this:

<a href="<?php echo($assumedRoot); ?>directors.php?directors=\"">directors</a>

Since we are directly referencing the original page, it will never be superseded by newer pages. End-users can also link directly to created pages using the text editor. Other than that, end-users will probably have to keep track if they delete pages in the middle of a stack. The numbering system can be thrown out of whack for subsequently created pages.

Sign in to reply to this post

olle189996

Hi
I tried your solution. But either there is something wrong ore I don't understand it.

When creating a new page from a template menu page. It still takes over the original one.

So I will have to create two pages. One to hold the original and one that I can edit and make a link to like "news.php?News=2"

So I can't really see the point in what you are doing. So please enlighten me :)

Regards
Olle

Sign in to reply to this post

Jason ByrnesWebAssist

the template is an object, not intended to be viewed by site visitors.


You will need to create as many pages from the template as should be viewd by the site visitor.

and create links to them as:
news.php?News=1
news.php?News=2
news.php?News=3



the page that listed at the top, will be the default page. It will be shown if there is no query string passed in.

So:
news.php?News=1

and
news.php

will return the same content.

Sign in to reply to this post

rsawyer341759

Addition of New Pages on Site Sculptor

Jason,

Your solution is not quite right.

The second page is indexed with a number starting with 1. The original page is not indexed with a number, but with a NULL. The SQL in the Webassist code that pulls up the page is looking for the highest indexed number, using "1" will pull up the second page. A more appropriate statement would be


page.php?page=""


in referring to the original page. However, this would potentially cause problems in the PHP code, so I use the backslash escape character to remedy this.

I have also noted that this scheme is not foolproof. Since pages based off of templates can be deleted, the numbering system may fail if your delete pages in a random order. For instance, if you have five pages, and delete pages two and three, I believe the Webassist code would create a page numbered six, because five exists. However, there would only be four pages showing, and there is no way to know from the administrative panel what number the page should be, since it is designed to replace, not increase the number of pages.

Sign in to reply to this post

Jason ByrnesWebAssist

the foolproof way of getting the correct link is to click the view page link in the admin. This will show the correct link for that page.


page.php?page=""

is not valid. use:
page.php


instead.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...