problem in Contact gadget

Questions about Jaws Gadgets (Blog, Photo Organizer, Polls, Banners, etc)

problem in Contact gadget

Postby jawsuser » Mon Dec 23, 2013 9:59 pm

I have an installation of 0.9.2 that has been upgraded from earlier 0.8.* versions. The Contact Us page shows some incorrect items:

1) the Site Slogan in the header section located under the Site Name gets changed to "Display Contact Full Interface"
Code: Select all
<div id="header-title">
<h1><a href="http://mysite.com/" rel="nofollow">My Site</a></h1>
<p>Display Contact Full Interface</p>
</div>


2) the meta variable for description gets changed to "Display Contact Full Interface"
Code: Select all
<meta name="description" content="Display Contact Full Interface" />


NOTE:
this will change if I change the type of contact page displayed. For example, if I make the Contact page a Simple type in the Menu link, the above items will be changed to "Display Contact Simple Interface", and so on...

this occurs only on the Contact page and no other pages.

Is this the intended functionality for this page?
I expected the Site Slogan and meta description to stay the same as the rest of the entire site.

Please help
jawsuser
 
Posts: 7
Joined: Thu Apr 19, 2012 12:17 am

Re: problem in Contact gadget

Postby afz » Sat Dec 28, 2013 8:16 pm

jawsuser wrote:I expected the Site Slogan and meta description to stay the same as the rest of the entire site.

Site Slogan, yes, but description must be change in each page.
I check it, but site Slogan, not changed
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

{site-description} behavior in Contact gadget

Postby jawsuser » Sun Dec 29, 2013 12:20 am

I was not expecting this to occur. But now I find that that this can be used in creative ways. I'm using the Burgandy theme. Upon investigation, the following variable {site-description} behaves differently depending on what gadget I use.

This variable is used twice in the layout template:

In the meta description:
Code: Select all
<meta name="description" content="{site-description}" />


and the Site Slogan:
Code: Select all
<div id="header-title">
         <h1><a href="{site-url}" rel="nofollow">{site-name}</a></h1>
         <p>{site-description}</p>
      </div>


in Static Pages...{site-description} uses the global Control Panel->Settings->Basic Settings "Site Slogan" unless the static page has a Meta Description defined.

in Contact Pages...{site-description} uses the Language variable for the type of Contact page used (Full, Simple, Mini, etc.) so it must be changed in each within the Language gadget for the Contact gadget.

in Photo Organizer Album pages...uses global "Site Slogan"

in Blog Pages... I assume, because I don't use the blog, is like Static Pages...global or page specific.

QUESTIONS:
Is there a {site-slogan} variable to use in templates that is only filled with the Control Panel->Settings->Basic Settings "Site Slogan" ???

Is there a published list of the template variables and what they a replaced with?
jawsuser
 
Posts: 7
Joined: Thu Apr 19, 2012 12:17 am

Re: problem in Contact gadget

Postby afz » Sun Dec 29, 2013 10:39 pm

{site-slogan} is only filled with the Control Panel->Settings->Basic Settings "Site Slogan".
but {site-description} can change by gadgets.

Global variables
Automatic filled by jaws in every template block
{theme_url}
{base_url}
{data_url}
{requested_url}
{index}
{.dir}
{.browser}
{base_script}
{requested_gadget}
{requested_action}

Variables of layout block in Layout.html
Configurable in Settings gadget
{site-direction}
{site-name}
{site-slogan}
{site-comment}
{site-author}
{site-license}
{site-copyright}
{site-languages}
{site-keywords} // changeable by other gadgets
{site-description} // changeable by other gadgets
{site-title} // changeable by other gadgets
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am


Return to Gadgets

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron