Hello everyone,
I have a problem with page titles in Actinic v8.
If the page title is empty in the 'Page Details' tab for a section, the page title is being generated by Actinic.
At present my title code is (actinic code to follow):
<title>
if (PageType != "Section")
PageType - StoreName
end if
if (PageType == "Section")
if (PageTitle == "") -notitle-
SectionName - CompanyName
end if
if (PageTitle != "") -withtitle-
PageTitle
end if
end if
The problem is that with or without a title in the 'Page Details' tab, the text -withtitle- is displayed. With the title being empty then it is shown in a page preview as the store name followed by the section name.
Does anyone have any solutions that i could try please?
I have a problem with page titles in Actinic v8.
If the page title is empty in the 'Page Details' tab for a section, the page title is being generated by Actinic.
At present my title code is (actinic code to follow):
<title>
if (PageType != "Section")
PageType - StoreName
end if
if (PageType == "Section")
if (PageTitle == "") -notitle-
SectionName - CompanyName
end if
if (PageTitle != "") -withtitle-
PageTitle
end if
end if
Code:
<title> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22" > <actinic:variable name="PageType" /> - <actinic:variable name="StoreName" /> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" > <actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitle%22%20%2f%3e%20%3d%3d%20%22%22" > no title <actinic:variable name="SectionName" /> - <actinic:variable name="CompanyName" /> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitle%22%20%2f%3e%20%21%3d%20%22%22" > title <actinic:variable name="PageTitle" /> </actinic:block> </actinic:block> </title>
Does anyone have any solutions that i could try please?
Comment