Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

create_by in title 06 Nov 2016 17:08 #14676

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
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

Please Log in or Create an account to join the conversation.

create_by in title 06 Nov 2016 17:50 #14677

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
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 ???

Please Log in or Create an account to join the conversation.

Last edit: by liubov.

create_by in title 10 Nov 2016 20:04 #14691

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.106 seconds

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started