P
P
Petr Volkhanov2014-09-26 18:21:40
PHP
Petr Volkhanov, 2014-09-26 18:21:40

How to override the getDescription() method in Joomla?

There is a question about CMS Joomla 3.15 - there is a method in Joomla $document->getDescription();that takes the first 200 characters from the article and inserts them into the description meta tag. How can I override this method to take the first 300 characters from the article? And where can I find where this method is described? In what file?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2014-09-26
@xmoonlight

search does not work for all files on the line "getDescription(" ?

A
Alex, 2014-09-26
@mr_ko

Install NetBeans for yourself, load all your joomla into a new project and then you can simply click on the method and you will be taken to the file where it is implemented.

A
Alexander, 2014-09-26
@aspetek

/libraries/joomla/document/document.php

public function getDescription()
  {
    return $this->description;
  }

Looks like you need to look further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question