Jump to content

Search the Community

Showing results for tags 'everywhere'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Developer Feedback
  • Club osC's Announcements
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. If we want to have content easy to modify on pages or page with option to turning off, we can use Content Module system for it and call only One of the box which we want and print it in our Template where we want. We can do through this steps: Create new directory: includes/modules/content/everywhere/ In template_top.php Before or just after: Add: if ($oscTemplate->hasContent('everywhere')) { $oscTemplate->getContent('everywhere'); } In osc_template.php Add (before getContent method) function getOneContent($title){ return $this->_content['everywhere'][$title]; } Modify: function addContent($content, $group, $contentname = false) { if($contentname){ $this->_content[$group][$contentname] = $content; }else{ $this->_content[$group][] = $content; } } And when you creating new module content in execute funtion do it like that: $oscTemplate->addContent($template, $this->group, $this->title); After all of this it's possible to print content where we want like that: echo $oscTemplate->getOneContent('Custom info');
×