Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 01:15:15 PM

Login with username, password and session length
Search:     Advanced search
16917 Posts in 5596 Topics by 11108 Members
Latest Member: wedogergo
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla SEF Patch extended version support (paid version)
| |-+  Support questions
| | |-+  Contact Missing Description and Description_Text Fields
« previous next »
Pages: [1] Print
Author Topic: Contact Missing Description and Description_Text Fields  (Read 2350 times)
linux4me
Newbie
*
Posts: 7


View Profile
« on: August 07, 2008, 05:46:49 PM »

I noticed that when I installed the SEF Patch Extended I lost the description for my contact page. I added text to the "Description Text" field in the menu item and checked "Show" for "Email Description", but the text doesn't show up in the source.

The old contact.xml has parameters for "description" and "description_text" where the text previously was input. The new contact.xml is missing these, but has the "email_description" and "email_description_text" fields.

I looked in the new contact.php file, and the problem looks like it's at line 146:
Code:
// page description
$currentcat->descrip = '';
if( isset($currentcat->description) && ($currentcat->description != '') ) {
$currentcat->descrip = $currentcat->description;
} else if ( !$catid ) {
// show description
if ( $params->get( 'description' ) ) {
$currentcat->descrip = $params->get( 'description_text' );
}
}
The code seems to indicate that the old parameter names (description and description_text) are used instead of the new ones (email_description and email_description_text).

I didn't get any error messages when I installed, so I think I'm using the correct version of the contact.php file.

I agreed not to alter your code without permission when I signed up to download the SEF Patch Extended, so I'm asking: Can I just alter this code to get it working or is there a patch?

Thanks.
Logged
linux4me
Newbie
*
Posts: 7


View Profile
« Reply #1 on: August 07, 2008, 06:34:19 PM »

I also noticed that the code on line 164 of contact.php shown here:
Code:
if ( $params->get( 'image' ) != -1 ) {
$currentcat->img = $path . $params->get( 'image' );
$currentcat->align = $params->get( 'image_align' );
}
hides the image if there is not a catid (the home page of contacts) only if the parameter "image" is set to -1, but the options for hiding the image in contact.xml has "hide" set to zero, so the image always shows.

This is making me think maybe my contact.php didn't get over-written and  I'm using the wrong version of contact.php...
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #2 on: August 07, 2008, 09:11:13 PM »

i will check this out coming weekend...

Richard
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!