1
1
101002014-02-07 23:43:16
PHP
10100, 2014-02-07 23:43:16

DLE 10.1 clipping title

Is there anyone who worked and continues to work with this engine?
Please help me find where in the engine they stuffed the code I needed.
I will try to describe the problem on things that I have already done.
When you have installed DLE and set the default template for example "defaulth" then go to "Admin panel" -> "Settings".
Enter the site title description and keywords in the fields:
Site title (title): World Wide Web
Description (Description): The site has a lot of useful information
Keywords (keywords): web, information
Next, create a new page for example:
Subject: I love Toaster
Description of the article : Masha walked along the highway sucking dry .................
Now we go in the browser to our article like this:
localhost/ja-lublu-toster.html
and now ATTENTION: look at the title (title) of the site it will be written like this:
I love the Toaster >> World Wide Web
As you can see, the title is superfluous for me phrase : >> World Wide Web
To make the title look cleaner like this: I love Toaster
I edited the file in the classes - show.full.php it seems.
Corrected the line

$metatags['title'] = $titl_e . $page_extra . ' » ' . $config['home_title'];

And also a line in engine.php $metatags['title'] = $row['title'];
I can’t find where to fix it so that now everything is displayed cleanly when you go to the link with the category.
For example, we created the /toster category.
go to localhost/toster all articles with this category open
ATTENTION: and the title (title) at this moment is: Toaster >> World Wide Web
I again want to get rid of >> World Wide Web here, but I can’t find where this miracle is written.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
10100, 2014-02-09
@10100

Oh, it's the second day. I clambered all the files, I thought maybe they put it into the function (

P
Pavel Belousov, 2014-02-14
@PafNutY

Look a little higher in the code:

if ($nam_e) {

  $metatags['title'] = $nam_e . $page_extra . ' » ' . $metatags['title'];
  $rss_title = $metatags['title'];

and remove from there:
. ' » ' . $metatags['title']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question