I would like to create an information page that does not /i] appear under the 'Information' module, but that I can link to from other pages on my site. I cannot see how to do this - does anyone know if this is possible?
Many thanks,
A.
Bugsafari.co.uk
Specialist stick insect breeders and suppliers of educational science products. Find us on Facebook and Twitter
(not a 5 minute job)
- these enable you to create information pages in a separate module, with sub-pages. This is useful for advice, hints and tips, a simple blog, etc, not just news or faqs.
Might suit your needs; depends what you want the page/s for.
Are there any more hidden gems?
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
I put little easter eggs in all the time for people to findmystifier wrote:Hidden Information Pages is not listed as a new feature but actually, it is a very good addition. I didn't realise that I wanted it but now that I have learned of its existence, I have a very good use for it.
Are there any more hidden gems?
Code: Select all
public function getInformations() {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC");
Code: Select all
public function getInformations() {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' AND i.sort_order <>'-1' ORDER BY i.sort_order, LCASE(id.title) ASC");
Test it out here: http://www.cartsupport.co.uk/hidden
Steve...
Are you serious?SteveSherry wrote:Just had a rethink on this (based on the posts that followed my original post), and have come up with a slightly simpler idea that only needs a quick change to the following file: catalog/model/catalog/information.php
toCode: Select all
public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC");
Then in order to hide an information page, just change the sort order to "-1"Code: Select all
public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' AND i.sort_order <>'-1' ORDER BY i.sort_order, LCASE(id.title) ASC");
Test it out here: http://www.cartsupport.co.uk/hidden
Steve...
I did this almost 1 year ago
http://forum.opencart.com/viewtopic.php ... 816#p31816
and its in 1.4.9 by default for information and categories
What other "easter eggs" have you put in, was this a joke or were you serious??Qphoria wrote:I put little easter eggs in all the time for people to find
Davy K
I have installed the above -1 mod on 1.4.7 works well but problem is that the link in the sitemap completely disappears, i would like links to all these hidden information pages to be displayed automatically in the sitemap information page and in the google_sitemap feed, in the mean time it looks like i will be adding the links manually in the sitemap.tpl but with no fix for the feed
any help would be appricated
Bugsafari wrote:Hi,
I would like to create an information page that does not /i] appear under the 'Information' module, but that I can link to from other pages on my site. I cannot see how to do this - does anyone know if this is possible?
Many thanks,
A.
my module >>> article module
ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step
Dunno, give me 30 seconds I'll try it......... Nope! I don't think I'd really want it to though.ifyouseek wrote:On 1.4.9 does the information pages set to -1 still appear in the sitemap etc?
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
[ ] Show in site map
[ ] Show in menu
[ ] Show in site search
[ ] Show in primary navigation
You may not want it appearing on the sitemap page, but im sure all site pages should appear on the sitemap rss feed for search enginesmystifier wrote:Dunno, give me 30 seconds I'll try it......... Nope! I don't think I'd really want it to though.ifyouseek wrote:On 1.4.9 does the information pages set to -1 still appear in the sitemap etc?
far better solution, i think quite a lot of coding would be involvedgocreative wrote:Wouldn't a better solution be:
[ ] Show in site map
[ ] Show in menu
[ ] Show in site search
[ ] Show in primary navigation
When I visit the forum, I usually answer a few support posts if I can but get frustrated with posts that make me think "you're sat in front of the thing, why not try it?! ". This didn't really apply in your case which was a valid question.
Sorry!
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
Users browsing this forum: No registered users and 38 guests