Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • dutton Friend
    #154753

    I am trying to use Web Links on our site however I need it to work and display with a bit more information.

    What I am seeking is how to display the date and order the links chronologically by the date. I understand all weblinks are time stamped when entered so I believe the above would be possible.

    gray Friend
    #357099

    in componentscom_weblinksmodelsweblink.php find the function

    [php]
    function _loadData()
    {
    // Lets load the content if it doesn’t already exist
    if (empty($this->_data))
    {
    $query = ‘SELECT w.*, cc.title AS category,’ .
    ‘ cc.published AS cat_pub, cc.access AS cat_access’.
    ‘ FROM #__weblinks AS w’ .
    ‘ LEFT JOIN #__categories AS cc ON cc.id = w.catid’ .
    ‘ WHERE w.id = ‘. (int) $this->_id;
    $this->_db->setQuery($query);
    $this->_data = $this->_db->loadObject();
    return (boolean) $this->_data;
    }
    return true;
    }
    [/php]

    try to add ORDER BY w.date DESC (more info)
    so it’ll be
    [php]

    ‘ WHERE w.id = ‘. (int) $this->_id .
    ‘ ORDER BY w.date DESC’;

    [/php]

    To add date into display layout you have to hack componentscom_weblinksviewscategorytmpldefault_items.php a little bit.

    dutton Friend
    #357119

    Thank you. I am not sure why but I am not seeing any changes at all.

    Last night I followed the instructions here and did not see any changes eiter.

    http://forum.joomla.org/viewtopic.php?f=431&p=2272998

    Any ideas?

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  dutton 14 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum