× Support for Joomla 2.5 templates is discontinued. This forum category is read-only.

Custom page titles for individual products

More
7 years 4 months ago #2233 by nttaiwan
nttaiwan created the topic: Custom page titles for individual products
I would like to have custom page titles for each product instead of just the product name. The individual products are not menu items and accessible from the product page only.

If this is not a standard admin option, then I'd like to append the meta description (which is a parameter for each product) to the product name and use that as the page title. If anyone could give me a pointer as to which php file to edit I'd be very grateful.

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #2237 by izabela
izabela replied the topic: Re: Custom page titles for individual products
The only way to customise product page's title is to create menu item that links to single product view and in that menu item's settings set custom page title/heading.

Every other solution requires making modifications in the core code of DJ-Catalog2. If it's OK for you, you need to open /components/com_djcatalog2/views/item/view.html.php and modify _prepareDocument() function.

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #2240 by nttaiwan
nttaiwan replied the topic: Re: Custom page titles for individual products
Many thanks. Actually it was a quick and easy change to the php code and it works exactly as I had hoped.

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.