Post by philbydevil » Fri Feb 25, 2011 8:20 pm

What it does:
Adds a "secondary title" input field in Admin->Catalog->Categories->Insert/Edit
Adds the "secondary title" to the category page title (ie. front-end)

Why would you want this:
So you can have a longer page title, but keep the actual category name short
Another way to add extra keywords to help with SEO

The outcome:
Before - Category Name
After - Category Name :: Secondary Title


I extended my product page tiles using Q's code in another thread:
Qphoria wrote:the product controller has

Code: Select all

$this->document->title = $product_info['name'];
that is what gives it the name. You could use an existing product field that you don't need like "location" and use that as your title field. Then globally change all controllers to:

Code: Select all

$this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;
I wanted to do this for my categories as well, so I could have a longer page title, but keep the actual category names short. It's not as easy as doing it for the product pages, although Chones/Craig did come up with a simply solution elsewhere, but this used the keyword field, and I wasn't quite ready to let it go ;)

So, here it is as a vQmod in case anyone else is interested.

You will also need to run this SQL in your database:

Code: Select all

ALTER TABLE `category_description`
ADD `title` VARCHAR( 255 ) NOT NULL
Backup your database first, just in case. Tested on 1.4.9.3. UPDATED for 1.5.1.3
Last edited by philbydevil on Sun Jan 22, 2012 7:00 am, edited 1 time in total.

I Image cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Location - Sunshine Coast, Australia

Post by relentless1 » Tue Apr 05, 2011 3:13 pm

some how this is not working for me, the Title field is not showing up on the form? I'm pretty sure vqmod is install correctly. the xml file is the correct folder

Newbie

Posts

Joined
Fri Apr 01, 2011 3:03 pm

Post by philbydevil » Tue Apr 05, 2011 6:54 pm

Do you have any other vQmods working? Any other mods that may affect this one? Did you run the SQL?

I Image cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Location - Sunshine Coast, Australia

Post by promofire » Sat Jun 04, 2011 3:54 am

Works a peach, many thanks!

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by opencartisalright » Sat Jun 04, 2011 7:06 pm

Any way to get this for OC 1.5?

Active Member

Posts

Joined
Mon Feb 21, 2011 4:09 am

Post by philbydevil » Wed Jun 08, 2011 10:22 am

Have a look at the files (and lines of code) that are modified in the XML file, and see if the same files (and lines of code) are there in 1.5

I haven't had a chance to even look at 1.5 yet, so I'm not sure how much the file structure, etc has changed.

I Image cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Location - Sunshine Coast, Australia

Post by Jasper84 » Mon Jul 25, 2011 8:58 pm

I'd like to contribute a modified version of this vQmod for OpenCart 1.5.

Needed this mod to work since the SEO scoring of the description on my category pages is actually important for me.
My products are sort of comparable to an IKEA closet, the description of the closet is in the main category description, and there are separate product pages for each door/shelf/etc. Naturally the category description then becomes the important page for SEO.
I guess that's a rather exotic set-up, so it's understandable OpenCart doesn't support all the SEO functions here out of the box :)

[offtopic] This btw also required me to modify the default google sitemaps priorites.

Attachments


Newbie

Posts

Joined
Mon Jul 25, 2011 8:56 pm

Post by Eva30 » Thu Sep 22, 2011 8:50 am

philbydevil wrote:What it does:
Adds a "secondary title" input field in Admin->Catalog->Categories->Insert/Edit
Adds the "secondary title" to the category page title (ie. front-end)

Why would you want this:
So you can have a longer page title, but keep the actual category name short
Another way to add extra keywords to help with SEO

The outcome:
Before - Category Name
After - Category Name :: Secondary Title


I extended my product page tiles using Q's code in another thread:
Qphoria wrote:the product controller has

Code: Select all

$this->document->title = $product_info['name'];
that is what gives it the name. You could use an existing product field that you don't need like "location" and use that as your title field. Then globally change all controllers to:

Code: Select all

$this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;
I wanted to do this for my categories as well, so I could have a longer page title, but keep the actual category names short. It's not as easy as doing it for the product pages, although Chones/Craig did come up with a simply solution elsewhere, but this used the keyword field, and I wasn't quite ready to let it go ;)

So, here it is as a vQmod in case anyone else is interested.

You will also need to run this SQL in your database:

Code: Select all

ALTER TABLE `category_description`
ADD `title` VARCHAR( 255 ) NOT NULL
Backup your database first, just in case. Tested on 1.4.9.3.
thank you.
v.nice module.

User avatar
New member

Posts

Joined
Fri Sep 09, 2011 4:17 pm

Post by misscaprice » Thu Dec 15, 2011 7:35 am

Tweaked it a little, entered it manually and it works flawlessly.

How this can be done for the manufacturers as well?

New member

Posts

Joined
Sat Jan 22, 2011 6:47 pm

Post by toolsandtimber » Thu Apr 05, 2012 3:34 pm

Excellent mod! Thankyou

New member

Posts

Joined
Wed Nov 23, 2011 5:47 pm

Post by vlaci » Sat Apr 14, 2012 4:51 am

EDITED : I forgot to put that in database... nevermind :)

Code: Select all

ALTER TABLE `category_description`
ADD `title` VARCHAR( 255 ) NOT NULL
Thank you for this module!!


Hello

I have just installed this module and I got the following notice in my admin ->catalog->categories -> Edit a Category section.

Code: Select all

Notice: Undefined index: title in /home/barovsk/public_html/vqmod/vqcache/vq2-admin_model_catalog_category.php on line 161
What is this ?

I have basic coding knowledge.

My OC version is 1.5.1.3.

Thanks

Newbie

Posts

Joined
Thu Feb 23, 2012 4:40 am

Post by Cookie1974 » Fri May 18, 2012 10:14 pm

Can't get this to work on 1.5.2.1?

Anyone else tried?

Newbie

Posts

Joined
Tue Nov 29, 2011 6:25 pm

Post by BOBKIM7080 » Fri Oct 26, 2012 7:36 am

Works great.
Is anybody know how to do also for "products"?

User avatar
New member

Posts

Joined
Fri Aug 26, 2011 12:53 am


Post by philbydevil » Fri Oct 26, 2012 8:28 am

Here is the vQmod for the product pages. It requires that you don't currently use "Location" (in the product data tab) for anything. Should work on most versions.

Attachments


I Image cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Location - Sunshine Coast, Australia

Post by BOBKIM7080 » Fri Nov 02, 2012 1:29 pm

It look like works.
But when after edit product it disappear.
I can see location field at php my admin product table.
Some how data is not saving at php my admin.
Any idea???

User avatar
New member

Posts

Joined
Fri Aug 26, 2011 12:53 am

Who is online

Users browsing this forum: No registered users and 4 guests