I have those template list created but i don't know why it is not working at all
Posted: 17.10.2005, 04:32
rank:
Professional
registered:
February 2005
Status:
offline
last visit:
09.04.08
Posts:
1480
[quote="motion-ex"]How do i get ride of this?
I am having the same problem.
I have done the make templates thing and there are templates whose filenames appear to begin with __template
I think the problem has to do with what I am putting in the template field but I have been unsuccessful in figuring out how to make it work.
.
Would love to have someone who has made this work post what to put in the template field.
This is what I tried putting in for "Template for displaying list items."
__template-block-list.html
and
PN-News-block-list.html
Neither seems to work.
Peter
Posted: 17.10.2005, 17:16
rank:
Helper
registered:
September 2004
Status:
offline
last visit:
31.07.06
Posts:
379
anyway i gave up
Posted: 17.10.2005, 18:15
rank:
Helper
registered:
September 2002
Status:
offline
last visit:
06.03.07
Posts:
141
under themes/YOURTHEME create a folder named "templates" make there a tree modules/pagesetter --> there u place the templates...
I'll try that thank you... counterintuitive setter should be the name of this module
Posted: 18.10.2005, 05:47
rank:
Professional
registered:
February 2005
Status:
offline
last visit:
09.04.08
Posts:
1480
I haven't felt this stupid since....but still not getting it.
1. I generated the 6 templates - which appear in Pagesetter as __template-block-list.html, __template-full.html, __template-list-footer.html, __template-list-header.html, __template-list.html, __template-print.html.
2. I downloaded these 6 and loaded them back into /themes/Seabreeze/templates/modules/pagesetter.
3. I went to the module block and to the module I am trying to create (Test) and picked PN-News (the only publication type available in the drop down because it is the only type I have created) and in the field entitled: "Template format for displaying list items" I entered __template-block-list.html (the templates are all preceded by a double underscore).
4. I get a copy of this error message for every publication instance (3 of them):
You are trying to view the publication titled "PN-News", but no template has been created for publication type 1 (format '').
Please ask administrator to create a template for this publication type.
5. This is telling me it tried to create the list and parsed all the publications but couldn't find the template.
6. I tried deleting cache and compiled templates which changed nothing.
7. I tried expanding the permissions on the directory tree leading to the templates, thinking perhaps the problem was the script getting blocked by a permission denied, with no help.
Questions:
1. Are the __template-block-list.html etc files the generated templates?
2. Is the directory structure as described above correct?
3. Is there something specific about how to enter the template name in the field?
4. What else have I not thought of?
Frustrated but no way am I giving up on this.
Thanks.
Peter
Posted: 19.10.2005, 02:33
rank:
Helper
registered:
September 2004
Status:
offline
last visit:
31.07.06
Posts:
379
good luck
Posted: 19.10.2005, 05:00
rank:
Professional
registered:
February 2005
Status:
offline
last visit:
09.04.08
Posts:
1480
I suppose luck might end up playing a role - as I keep fiddling and trying things, I amy ultimately stumble on the solution.
But my experience has been that someone sees the post and provides an answer or points me in the right direction.
Problem is, I think, that I'm at that quirky place on the learning curve past raw beginner and learning some neat stuff but still with big gaps where my knowledge is very uneven or just plain missing. Teaching myself PHP as I go, playing with things and trying to make things work. It's fun and I like the challenges and don't really mind struggling - for a while, at least. Lots of time I can figure out 80% with minimal effort, 10% with lots of work - and then I get stuck on the last 10% which is WAY beyond me.
I'm not sure where this thread should be - here or on the PS forum. And I don't want to crosspost, but if I'm not getting an answer here, I guess I'll have little choice.
Peter :cry:
Posted: 19.10.2005, 16:10
rank:
Professional
registered:
February 2005
Status:
offline
last visit:
09.04.08
Posts:
1480
Have moved this to the Pagesetter forum where (I hope) I am more likely to have someone able/willing to respond.
OK, I've gone through the manual and forums with no luck on getting the list to work without an error. I'm wondering if anyone else has figured out the problem.
I'm getting the same error everyone else is describing. I'm using the latest version of Pagesetter.
The following is the error message:
You are trying to view the publication titled "IBO-Articles", but no template has been created for publication type 5 (format '').
Please ask administrator to create a template for this publication type.
But I have the template created, so I'm lost -- any help will be appreciated.
First of all the templates with names that start with an underscore (_) in the pntemplates directory are templates for templates They're used when you call the create templates function in the admin section of Pagesetter.
When you usepagesetter's list block you can specify a a template that the block should use. If, for instance, you specify "list" as the template and IBO-Articles as the the pub-type you must have a file named IBO-Articles-list.html in the templates directory. So you need either either /modules/pagesetter/pntemplates/IBO-Articles-list.html or /themes/yourtheme/templates/modules/pagesetter/IBO-Articles-list.html
Judging from your error message it seems you didn't specify a template when you created the block.
if no header is found, you'll get the same error..
-Igor
Posted: 01.12.2005, 01:28
rank:
Software Foundation
registered:
July 2001
Status:
offline
last visit:
13.08.08
Posts:
954
I've checked, all the templates are created as mentioned. Also, when creating the block, when no block is specified you get the list but have the error message at the top and bottom of the list. If you specify a template then I get the error on all the links. So I'm stumped again and I know Pagesetter is an awesome module so it would be great to get this working -- and it seems I'm not the only one having problems so document it so others don't have to go through similar frustrations.
OK, here's the solution I've found (thanks Videokid for the hint on header/footer templates)-- when creating a block "list" make sure you have not only the IBO-Articles-block-list.html but also the IBO-Articles-block-list-header.html, IBO-Articles-block-list-footer.html files created.
The funny thing is you don't have to specify the template you're using in the block for the list to work.
However, I do have another problem that will take a bit of research -- for example the list is created as a center block, but as soon as this block is created the other center "active" blocks dissappear. This happened when I was getting the error message too. So the other blocks won't appear until the entire block is deleted. My first check will be the block code -- I'll keep everyone updated to see how its solved.
Thanks again for everyones help.
Note, the issue with the disappearing block only happens in an AutoTheme template -- works OK within an Xanthia based template.