I think that I like many other people assumed that after you make a custom template or custom wrapper it would go inside of the custom folder of the templates. It literally took me about an hour at least trying to wrack my brains to find out why my custom wrapper wasn't working.
There is no documentation that says it should go there but if other people are thinking like me this is the reason for most of the custom template problems I see on the board.
It should be noted in the documentaion that custom templates do not go in the custom folder.
I'm using it to call a custom wrapper for my display links
It should be noted in the documentaion that custom templates do not go in the custom folder.
Sure they do, that's where I've put all of mine, you just have to specify it. I'm not sure what sort of manual entry that could fit in, but I'll see if I can find some sort of place to mention that the subdirectory needs to be specified.
Your url there is odd. Why would you make a URL-version custom wrapper for a category instead of using category wrappers? The way you're doing it, you miss out on all the other related category pages and only have it for the display links.
In fact, i am using a customwrapper.tpl in certain cateogires.Just upload the customwrapper.tpl and change it when you are editing that category. Input customwrapper.tpl in the field and all is done.
Actually I'm going through the code page by page & customizing it. I want to use 1 different wrapper for all categories as default. I did it that way to eliminate the need to select a custom wrapper each time a new category is created.
Since I'm going through every piece of the code I thought I would manually change all the links.
Yeah I never saw any mention of a subdirectory in any of the documentation this would help.
I think this is why people had prroblems. Your ducumentation for your software is absolutely the best I've seen of any software that i've used.
I'll try to clear this up a little as why I thought about structuring it this way.
I want to create several different sizes for width & basic layout for my site.
The main page has 800 width with 3 columns & ads & topsites on the side in the middle is content area.
Many of the pages will have this structure.
The categories though is just 800 width with just 1 column & the header is a bit different. For the site I'm working on right now I can actually input each custom wrapper as I'm creating each category. It actually works out. The problem comes if I decide to import categories from the DMOZ. One of our sites has like 400 categories imported from their.
The search results & comments may have flowing widths.
There are 3 or 4 templates I believe that are higly likely that people will use or want to use different default wrappers. That's the main page which most of the time will be the normal wrapper, the category (display links) page, the comments (we haven't customized it yet) & the search results.
Basically I just want to have a default different wrapper for the display links. Is there another way of doing it that's better. I actually just thought I was helping out by writing this & thought that's the way others might be customizing the links & category page by default.
Paul wrote: It should be noted in the documentaion that custom templates do not go in the custom folder.
Sure they do, that's where I've put all of mine, you just have to specify it. I'm not sure what sort of manual entry that could fit in, but I'll see if I can find some sort of place to mention that the subdirectory needs to be specified.
Your url there is odd. Why would you make a URL-version custom wrapper for a category instead of using category wrappers? The way you're doing it, you miss out on all the other related category pages and only have it for the display links.
Hate to bump this but the more I read your documentation the more I belive that I can really maximize your software with few new directory projects.
But before I do I just wanted to ask if there is another option for setting a different default category wrapper. I plan on using your import script & possibly could generate too many categories to go back & edit each one.
Is it possible to set the category wrapper & it automatically is used for all sub categories?
In reading your post it appears to me that you are making a lot more work for yourself than you need to. What you are trying to do is a little confusing. So lets start with step 1: You want the exact same header and footer in all of these wrappers. (In the wrapper you want some things the same right?) Step 2: This is where it is unclear. Do you want one of these columns the same on each page? If yes then also include that column in your wrapper. The same means toplist (that can still change with each category), but basically the same layout and information. If that is the case include this column in the wrapper also. It all columns is going to change layout and information, then make it a part of the template for that area.
So basically if you have the wrapper with header, footer and 1 column: then your main template with 2 columns for a total of 3 columns (1 from the wrapper and 2 from the main template.) Now when you move to the displaylinks template you would have 1 column for a total of 2 columns (1 from the wrapper and 1 from the displaylinks template.) Do you see where I am going?
If you want just the header and footer to remain the same then add all of you columns to the templates for that area.
You should not need more than 1 wrapper except for speciality items and all of you categories and other things should come from the template for that page.
If you tell me more exact information of what you want and not what you are doing I can help you some more.
Actually just as I stated the layout of the wrappers are different. I am redesigning the layout of every page & the info displayed is different it's not just toplist.
I simplified my explanation but every template & warapper I described is different.
Anyway maybe I'll reconsider & simplify the project (a bit).
If there is nothing in common at all in any of the wrappers, I would just turn the wrapper off or only include the opening and closing tags Then include the header and footer as part of the templates. Having to call 2 special files is a pain, better no wrapper and just the template.
I am pretty sure that will work, but you may want to have Paul weight in on the subject.
Cricket wrote: If there is nothing in common at all in any of the wrappers, I would just turn the wrapper off or only include the opening and closing tags Then include the header and footer as part of the templates. Having to call 2 special files is a pain, better no wrapper and just the template.
I am pretty sure that will work, but you may want to have Paul weight in on the subject.
There are some of the other pages that are using common wrappers. It's just that category listings, search, & the comments we wanted unique looks to give more of the impression we are using a multi million dollar system. With the limits we can still make it seem like we are because the software is top notch.
We are just going to configure the templates within those limits. It's no big deal we just thought we were doing it a way others were.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Tip for using custom wrappers
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
I think that I like many other people assumed that after you make a custom template or custom wrapper it would go inside of the custom folder of the templates. It literally took me about an hour at least trying to wrack my brains to find out why my custom wrapper wasn't working.
There is no documentation that says it should go there but if other people are thinking like me this is the reason for most of the custom template problems I see on the board.
It should be noted in the documentaion that custom templates do not go in the custom folder.
I'm using it to call a custom wrapper for my display links
The URL is
www.mysite.com/index.php?cu...&action=displaycat&catid=8
And it works with the custom wrapper "category_wrapper" outside of the custom folder & with all the other templates.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It should be noted in the documentaion that custom templates do not go in the custom folder.
Sure they do, that's where I've put all of mine, you just have to specify it. I'm not sure what sort of manual entry that could fit in, but I'll see if I can find some sort of place to mention that the subdirectory needs to be specified.
Your url there is odd. Why would you make a URL-version custom wrapper for a category instead of using category wrappers? The way you're doing it, you miss out on all the other related category pages and only have it for the display links.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
Yes, i agree with paul.
In fact, i am using a customwrapper.tpl in certain cateogires.Just upload the customwrapper.tpl and change it when you are editing that category. Input customwrapper.tpl in the field and all is done.
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
Actually I'm going through the code page by page & customizing it.
I want to use 1 different wrapper for all categories as default.
I did it that way to eliminate the need to select a custom wrapper each time a new category is created.
Since I'm going through every piece of the code I thought I would manually change all the links.
Yeah I never saw any mention of a subdirectory in any of the documentation this would help.
I think this is why people had prroblems.
Your ducumentation for your software is absolutely the best I've seen of any software that i've used.
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
I'll try to clear this up a little as why I thought about structuring it this way.
I want to create several different sizes for width & basic layout for my site.
The main page has 800 width with 3 columns & ads & topsites on the side in the middle is content area.
Many of the pages will have this structure.
The categories though is just 800 width with just 1 column & the header is a bit different. For the site I'm working on right now I can actually input each custom wrapper as I'm creating each category. It actually works out. The problem comes if I decide to import categories from the DMOZ. One of our sites has like 400 categories imported from their.
The search results & comments may have flowing widths.
There are 3 or 4 templates I believe that are higly likely that people will use or want to use different default wrappers. That's the main page which most of the time will be the normal wrapper, the category (display links) page, the comments (we haven't customized it yet) & the search results.
Basically I just want to have a default different wrapper for the display links. Is there another way of doing it that's better. I actually just thought I was helping out by writing this & thought that's the way others might be customizing the links & category page by default.
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
It should be noted in the documentaion that custom templates do not go in the custom folder.
Sure they do, that's where I've put all of mine, you just have to specify it. I'm not sure what sort of manual entry that could fit in, but I'll see if I can find some sort of place to mention that the subdirectory needs to be specified.
Your url there is odd. Why would you make a URL-version custom wrapper for a category instead of using category wrappers? The way you're doing it, you miss out on all the other related category pages and only have it for the display links.
Hate to bump this but the more I read your documentation the more I belive that I can really maximize your software with few new directory projects.
But before I do I just wanted to ask if there is another option for setting a different default category wrapper. I plan on using your import script & possibly could generate too many categories to go back & edit each one.
Is it possible to set the category wrapper & it automatically is used for all sub categories?
Beginner
Usergroup: Customer
Joined: Feb 22, 2003
Total Topics: 2
Total Comments: 2
In reading your post it appears to me that you are making a lot more work for yourself than you need to. What you are trying to do is a little confusing. So lets start with step 1: You want the exact same header and footer in all of these wrappers. (In the wrapper you want some things the same right?) Step 2: This is where it is unclear. Do you want one of these columns the same on each page? If yes then also include that column in your wrapper. The same means toplist (that can still change with each category), but basically the same layout and information. If that is the case include this column in the wrapper also. It all columns is going to change layout and information, then make it a part of the template for that area.
So basically if you have the wrapper with header, footer and 1 column:
then your main template with 2 columns for a total of 3 columns (1 from the wrapper and 2 from the main template.) Now when you move to the displaylinks template you would have 1 column for a total of 2 columns (1 from the wrapper and 1 from the displaylinks template.) Do you see where I am going?
If you want just the header and footer to remain the same then add all of you columns to the templates for that area.
You should not need more than 1 wrapper except for speciality items and all of you categories and other things should come from the template for that page.
If you tell me more exact information of what you want and not what you are doing I can help you some more.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I just wanted to ask if there is another option for setting a different default category wrapper.
Not besides specifying it in your 'add category' template so that you set it on each addition.
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
Actually just as I stated the layout of the wrappers are different. I am redesigning the layout of every page & the info displayed is different it's not just toplist.
I simplified my explanation but every template & warapper I described is different.
Anyway maybe I'll reconsider & simplify the project (a bit).
Thanks...
Beginner
Usergroup: Customer
Joined: Feb 22, 2003
Total Topics: 2
Total Comments: 2
If there is nothing in common at all in any of the wrappers, I would just turn the wrapper off or only include the opening and closing tags Then include the header and footer as part of the templates. Having to call 2 special files is a pain, better no wrapper and just the template.
I am pretty sure that will work, but you may want to have Paul weight in on the subject.
Member
Usergroup: Customer
Joined: Oct 30, 2004
Total Topics: 18
Total Comments: 47
If there is nothing in common at all in any of the wrappers, I would just turn the wrapper off or only include the opening and closing tags Then include the header and footer as part of the templates. Having to call 2 special files is a pain, better no wrapper and just the template.
I am pretty sure that will work, but you may want to have Paul weight in on the subject.
There are some of the other pages that are using common wrappers.
It's just that category listings, search, & the comments we wanted unique looks to give more of the impression we are using a multi million dollar system. With the limits we can still make it seem like we are because the software is top notch.
We are just going to configure the templates within those limits. It's no big deal we just thought we were doing it a way others were.