Jump to content

Blocklayered modification for manufacturer meta_title


Recommended Posts

Hi guys,

 

Does anyone have a clue how can I modify the blocklayered module, so it can display manufacturer's meta_title instead of the name? I think that this will be very userful not only for me. For example, in other smarty templates I can do the following thing: 

{if isset($manufacturer.meta_title) AND $manufacturer.meta_title}
{$manufacturer.meta_title|escape:'html':'UTF-8'}                                 
{else}
{$manufacturer.name|truncate:60:'...'|escape:'html':'UTF-8'}    
{/if}   

This is the perfect scenario - if the meta title is set, show it. If it is not set, show the name. Of course, there was a modification in the clasess/Manufacturer.php so that the meta_title can be extracted from the DB.

 

But how can this functionality be applied for the blocklayered module? I see that in the tpl files you can hardly do anything like the mentioned above code, so I guess there should be some modifications in /modules/blocklayered/blocklayered.php . 

I would really appreciate it if someone can help me figure this out.

 

Thanks for the info in advance!

 

Regards,

Martin

Edited by mpatzekov (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...