5 Posts
LRN
11 years ago
Topic

Hi!

I make a internet site.
It is necessary to create a separate field which will be responsible for a display a <title> on a site.
How it can be made?

<head>
<title>site title</ title>
</head>

Joomla 2.5.14
Seblod 2.3.9.2

Thanks. Excuse me for the transfer.

Get a Book for SEBLOD
5 Posts
LRN
11 years ago
0
Level 1

UP

11 years ago
0
Level 1

HI LRN,

Thank you for your post. Welcome to SEBLOD forum.

I advise to reed some manuals in this website.

Regards,
Mehdi.

5 Posts
LRN
11 years ago
0
Level 1

Hi Mehdi!

Thanks for the reminder! SEBLOD I have been working for 2 years. Made more than one site, but the problem appeared for the first time! The need for a custom field to be displayed in <head> site, my field <title>!

The following screenshots, now I think will be better understood!  (Sorry, I do not know how to insert pictures)

Image 1

image 2

Need!

image 3

I think now it will become clear! (I apologize for the machine translation!)


p.s. 's Not ready yet, but it is interesting ... site


11 years ago
3
Level 1

In Joomla components and plugins you can use some PHP code to change the page title:

JFactory::getDocument()->setTitle('Set your title here');
In your case you could use this code in a custom template or use the Code Pack plugin before render.



5 Posts
LRN
11 years ago
1
Level 2

What would make me a new field, I need to buy this plugin? 

Whether there are other options to address this issue?

11 years ago
0
Level 3

Hi,

If you use the SEBLOD article object to manage your content, the Joomla title field (art_title) is automatically the meta title on the detail content page.

If you wish to separate the Content Title and the Meta Title, yes like you have done you can insert another field. Maybe the most simple is to used the art_title field such as the Meta Title and add a custom field for your content title. You can disable easily the Joomla Title display in Joomla views and manage what you want in SEBLOD views.

Regards.

5 Posts
LRN
10 years ago
0
Level 2
Hi gebeer!

There are examples of how to use the plugin? I do not understand how to use it!? I do not want to buy a plug-in and it does not help me with my problem!
10 years ago
0
Level 1
After you install the plugin, you can add a new field to your form of type "Processing->Before render" and just put some PHP code in there. Assuming that the field name for your meta title is "my_page_title", you could use something like this:
JFactory::getDocument()->setTitle($cck->getValue("my_page_title"));
If you don't want to buy the plugin, you can use a custom position override and enter the code there. See this link.

Get a Book for SEBLOD