Post by Bugsafari » Sat Aug 28, 2010 5:40 am

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.

Bugsafari.co.uk
Specialist stick insect breeders and suppliers of educational science products. Find us on Facebook and Twitter


New member

Posts

Joined
Thu Jul 22, 2010 6:37 pm

Post by SteveSherry » Sat Aug 28, 2010 6:11 am

You need to create files in the controller, model, view & language
(not a 5 minute job)

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by Moggin » Sat Aug 28, 2010 6:44 am

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.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by Qphoria » Sat Aug 28, 2010 7:23 am

In 149 you can set information and category sort order to -1 to hide it from the side box but still link to it

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Moggin » Sat Aug 28, 2010 10:52 pm

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...

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by mystifier » Sun Aug 29, 2010 1:35 am

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?

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


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by Qphoria » Sun Aug 29, 2010 4:14 am

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 :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gocreative » Tue Aug 31, 2010 10:22 am

Qphoria wrote:I put little easter eggs in all the time for people to find :)
Chocolate, I hope :)

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 5:46 pm

Post by SteveSherry » Wed Sep 01, 2010 5:07 am

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...

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by Bugsafari » Sat Sep 04, 2010 11:13 pm

Hi Steve,

That's excellent - it works a treat!

Thank you for your help,

A.

Bugsafari.co.uk
Specialist stick insect breeders and suppliers of educational science products. Find us on Facebook and Twitter


New member

Posts

Joined
Thu Jul 22, 2010 6:37 pm

Post by Qphoria » Sat Sep 04, 2010 11:17 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by davykeenan » Sat Sep 11, 2010 10:33 am

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

User avatar
Active Member

Posts

Joined
Tue Jun 16, 2009 8:01 pm

Post by qahar » Fri Sep 17, 2010 12:18 am

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

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by ifyouseek » Sat Feb 26, 2011 5:12 am

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

Active Member

Posts

Joined
Thu May 06, 2010 4:40 pm

Post by amdev » Sat Feb 26, 2011 10:31 am

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


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by ifyouseek » Wed Mar 09, 2011 1:27 am

On 1.4.9 does the information pages set to -1 still appear in the sitemap and in feeds etc?

Active Member

Posts

Joined
Thu May 06, 2010 4:40 pm

Post by mystifier » Fri Mar 11, 2011 5:20 am

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.

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


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by gocreative » Fri Mar 11, 2011 5:30 am

Wouldn't a better solution be:

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

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 5:46 pm

Post by ifyouseek » Fri Mar 11, 2011 1:47 pm

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

Active Member

Posts

Joined
Thu May 06, 2010 4:40 pm

Post by mystifier » Fri Mar 11, 2011 4:23 pm

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!

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


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm
Who is online

Users browsing this forum: No registered users and 38 guests