Page 1 of 2

Information Pages

Posted: Sat Aug 28, 2010 5:40 am
by Bugsafari
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.

Re: Information Pages

Posted: Sat Aug 28, 2010 6:11 am
by SteveSherry
You need to create files in the controller, model, view & language
(not a 5 minute job)

Re: Information Pages

Posted: Sat Aug 28, 2010 6:44 am
by Moggin
True. Another option is Qphoria's CMS mod or Fido's news or faqs mod
- 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.

Re: Information Pages

Posted: Sat Aug 28, 2010 7:23 am
by Qphoria
In 149 you can set information and category sort order to -1 to hide it from the side box but still link to it

Re: Information Pages

Posted: Sat Aug 28, 2010 10:52 pm
by Moggin
Qphoria wrote:In 149 you can set information and category sort order to -1 to hide it from the side box but still link to it
That is very neat...

Re: Information Pages

Posted: Sun Aug 29, 2010 1:35 am
by mystifier
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?

Re: Information Pages

Posted: Sun Aug 29, 2010 4:14 am
by Qphoria
mystifier 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?
I put little easter eggs in all the time for people to find :)

Re: Information Pages

Posted: Tue Aug 31, 2010 10:22 am
by gocreative
Qphoria wrote:I put little easter eggs in all the time for people to find :)
Chocolate, I hope :)

Re: Information Pages

Posted: Wed Sep 01, 2010 5:07 am
by SteveSherry
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

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");
to

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");
 
Then in order to hide an information page, just change the sort order to "-1"

Test it out here: http://www.cartsupport.co.uk/hidden
Steve...

Re: Information Pages

Posted: Sat Sep 04, 2010 11:13 pm
by Bugsafari
Hi Steve,

That's excellent - it works a treat!

Thank you for your help,

A.

Re: Information Pages

Posted: Sat Sep 04, 2010 11:17 pm
by Qphoria
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

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");
to

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");
 
Then in order to hide an information page, just change the sort order to "-1"

Test it out here: http://www.cartsupport.co.uk/hidden
Steve...
Are you serious?
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

Re: Information Pages

Posted: Sat Sep 11, 2010 10:33 am
by davykeenan
Qphoria wrote:I put little easter eggs in all the time for people to find :)
What other "easter eggs" have you put in, was this a joke or were you serious??

Davy K

Re: Information Pages

Posted: Fri Sep 17, 2010 12:18 am
by qahar
Qphoria wrote:In 149 you can set information and category sort order to -1 to hide it from the side box but still link to it
lol.. you r cool... :D

Re: Information Pages

Posted: Sat Feb 26, 2011 5:12 am
by ifyouseek
On 1.4.9 does the information pages set to -1 still appear in the sitemap and in feeds etc?

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

Re: Information Pages

Posted: Sat Feb 26, 2011 10:31 am
by amdev
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

Re: Information Pages

Posted: Wed Mar 09, 2011 1:27 am
by ifyouseek
On 1.4.9 does the information pages set to -1 still appear in the sitemap and in feeds etc?

Re: Information Pages

Posted: Fri Mar 11, 2011 5:20 am
by mystifier
ifyouseek wrote:On 1.4.9 does the information pages set to -1 still appear in the sitemap etc?
Dunno, give me 30 seconds I'll try it......... Nope! I don't think I'd really want it to though.

Re: Information Pages

Posted: Fri Mar 11, 2011 5:30 am
by gocreative
Wouldn't a better solution be:

[ ] Show in site map
[ ] Show in menu
[ ] Show in site search
[ ] Show in primary navigation

Re: Information Pages

Posted: Fri Mar 11, 2011 1:47 pm
by ifyouseek
mystifier wrote:
ifyouseek wrote:On 1.4.9 does the information pages set to -1 still appear in the sitemap etc?
Dunno, give me 30 seconds I'll try it......... Nope! I don't think I'd really want it to though.
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 engines
gocreative wrote:Wouldn't a better solution be:

[ ] Show in site map
[ ] Show in menu
[ ] Show in site search
[ ] Show in primary navigation
far better solution, i think quite a lot of coding would be involved

Re: Information Pages

Posted: Fri Mar 11, 2011 4:23 pm
by mystifier
Apologies ifyouseek, if I seemed facetious.

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!