Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Wrong item title

create_by in title 06 Nov 2016 17:08 #14676

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
Not sure if its somethoing I have ticked or done, but I keep seeing numbers in the page title on the browser bar.

Looked into it, and I am seeing this in the diusplayFunctions of view.html.php
// Define the title
		$this->_prepareDocument(JText::_('PAGE_TITLE')), $this->item, 'created_by');

Hence the completely random number. Is this something I have done wrong as its on every view?
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

create_by in title 06 Nov 2016 17:50 #14677

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
I think no, it's something new and wrong in the Builder.
I had to remove this from the last generated code (3.0.7)
//  Define the default title

// new method
// $this->_prepareDocument(JText::_('JBREEDING_LAYOUT_PORTEE_ACTUELLE'), $this->item, 'id_etalon');

// old method
$this->params->def('title', JText::_('JBREEDING_LAYOUT_PORTEE_ACTUELLE'));
$this->_prepareDocument();
that works fine

@Jocelyn,

Is there a reason to push $this->item, 'id_xxxx' in the Title ???
Last Edit: 06 Nov 2016 17:56 by liubov.
The administrator has disabled public write access.

create_by in title 10 Nov 2016 20:04 #14691

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
The item title has been recently added.

It uses the default field of the table. The star in the builder.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.069 seconds

Get Started