• Home
  • Support
  • Forum
  • Cobalt 8
  • how to have "category - parent category" instead of "category - section name" in category index header?

Guest
06 May 2013 04:53

as you see above my parent category is "proposte" while in cindex the section name is being displaied instead

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
06 May 2013 06:14

You have to edit in markup temple section title part lines 35-76

Aprox code

id(!$this->category->id)

{

echo "Section Home"

}

elseif($this->category->parent)

{

echo ItemsStore::getCategory($this->category->parent)->title. " - ". $this->category->title

} else

{

// first level category

echo $this->section->name. ' - '. $this->category->title

}

Powered by Cobalt