I've been having an issue when i view a category which is in a hidden container.
Looking at HTML code that gets generated there are numerous un-closed TDs and DIVs which causes template to get screwed up - especially the footer.
you can view at: http://www.allanalog.com/d0214/node/18
the line at bottom "does this show up now???" is the footer; but shows up at bottom of node rather than bottom of page.
Perhaps i am simply using container incorrectly - i wanted to have nodes that are assigned to a "Category" but i didn't want that category page to show up anywhere...
this was mostly for using cat_menu which i was never able to get working so hasn't been that big an issue... but category still shows up in "parents" list for that page (http://www.allanalog.com/d0214/) - which i would rather it didn't...
Is there a way to turn this off??
Comments
Comment #1
Jaza commentedI wasn't able to access that page on your site - got an 'access denied' message. Could you please allow access to this page, or else provide an alternative example?
I can't see how the category module would ruin the markup of a site, either. It only uses one themable function (in category_display), and the markup in this function is simple and valid XHTML. Only DIVs are used, not TDs - so if you're having a tables problem, the category module is not to blame. Perhaps there's another module causing your problems, or even your theme itself?
If you determine that the category module is still to blame, please be more specific about what's causing the problem. Thanks.
Comment #2
liquidcms commentedwell that's interesting... another bug perhaps.. it seems like anonymous users can not access any of the nodes which are tagged with a category... that's a new one.
as for the original issue - i will try to do a little more digging... but the default Bluemarine theme shows the problem (as well as my custom theme which is based off pushbutton).
Comment #3
liquidcms commentedre: the access issue.. my development station site works properly - acces to anon.
but my server version (which i thought was identical) doesn't allow access - i'll re-checkout to server and copy over DB and see it is is fixed
of course this has nothing to do with original theme issue... but would be nice if i could show you the links
Comment #4
liquidcms commentedcopied over development station db - site is now good... the links above; should you want to take a look.. should be working now.
I will take another look to see if i can narrow down why the template is being corrupted.
Comment #5
Jaza commentedI accessed this page, and looked at the page's source code. Your structural DIVs and TABLEs are incorrectly nested on this page. This has nothing to do with the category module - either your theme is buggy, or the content that's being shown on this page has bad markup. Seeing that the other pages on your site seem to display fine, I'm guessing that your theme is fine, and that there are unclosed HTML tags in the nodes listed on your 'company' page. Are you using a WYSIWYG editor such as TinyMCE? It is possible that this is the cause of your nesting problems - try editing your nodes in plain-text mode, and see if this helps.
Comment #6
liquidcms commentedthanks Jeremy.. i'll take a look... you are correct.. i am using Tiny as an editor.. and i have had quite a few problems with it (in 4.7, the 4.6 version seems better)...
i'll take a look.. like you suggested pretty sure not the theme itself.. cuz it is simply std 4.7 ver of bluemarine...
thanks for taking a look.
btw... I am have switched that site to my new theme... if you go to this link: http://www.allanalog.com/d0214/ajax
and click the Yellow "Drupal" text - you will see start of my new categories based AJAX "showcase" module.
basically i use AJAX and cycle though teasers for a give category and dump into a block (at the moment i have a "block" in my header).
i have this AJAX app in a non-drupal site with better features like manual stepping; that i still need to port over to drupal - plus i need to add "settings" part to module (but this is my first module - so might take a while)...
maybe your "categories" site needs a page/repository for links to category based ideas/modules/block snippets/etc.
cheers,
peter...
Comment #7
liquidcms commentedbtw... my site won't look very good just yet if you use IE...
Comment #8
liquidcms commentedi looked at content for the broken node... it is plain text...
I'll keep looking.
Comment #9
liquidcms commentedok, i got it..
so this "sort of" is a category problem... but more likely a built in drupal issue..
basically one of the "teaser" bits that you add at the bottom of the page when listing a category is from a node that is in HTML code...
and then you (or drupal core) breaks the page into a "teaser" in a non-smart html happy kinda way.. so basically you chop off after x number of characters ; but in this case that is in the middle of a table... which, of course makes a mess of things
i'll do a like code digging and testing since i actually do not know what drupal does as far as making teasers out of html code...
i'll let ya know what i find.
Comment #10
liquidcms commentedif i add a
do you use this?
Comment #11
liquidcms commentedgot clipped in post....
last post was:
if i add a < ! - - break - - > would you use it... and the answer is no.
Comment #12
liquidcms commentedSO... you DO use the node teaser.. but there is a "bug" in drupal... if you add the teaser at the beggining of the body - drupal ignores it and sets the teaser to the entire body (with the "break" included in the text)
so i have now added a manual break just after first line.. and this prevents teaser from breaking in middle of
problem solved.. more or less.