Categories and DWTs

P

Pam

I'm using categories as a navigation tool in a Web site, where pages are
assigned categories, and then category lists are generated using the TOC
component (site map by category).

I'm also using DWTs. When I assign a category, the code is embedded in the
head, and somehow in the DWT that was assigned, but only to that page
(essentially modifying the DWT for that page only).

Generally, that wouldn't be a problem, but when I attach a modified DWT, all
my category code is wiped out, and I have to recatogorize.

Are there any workarounds you can suggest?
 
S

Stefan B Rusynko

DWTs do not support Categories (since they rely on writing a html schema tag and write unique code into the Head section)




| I'm using categories as a navigation tool in a Web site, where pages are
| assigned categories, and then category lists are generated using the TOC
| component (site map by category).
|
| I'm also using DWTs. When I assign a category, the code is embedded in the
| head, and somehow in the DWT that was assigned, but only to that page
| (essentially modifying the DWT for that page only).
|
| Generally, that wouldn't be a problem, but when I attach a modified DWT, all
| my category code is wiped out, and I have to recatogorize.
|
| Are there any workarounds you can suggest?
 
P

Pam

For those interested, I was able to resolve my issue with a workaround so
that I'm able to use both DWTs and categories.

I created a category of None, and assigned my DWT to the None category.

I left the HTML schema intact, but added "Begin Editable" and "End Editable"
tags to the unique code, so that what I have is this:

<!-- #BeginEditable "category" -->
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:Categories msdt:dt="string">None</mso:Categories>
<mso:Approval_x0020_Level msdt:dt="string"></mso:Approval_x0020_Level>
<mso:Assigned_x0020_To msdt:dt="string"></mso:Assigned_x0020_To>
</mso:CustomDocumentProperties>
</xml><![endif]-->
<!-- #EndEditable -->

Now, when I go to a page with the DWT attached, I can edit the category
assignment, unchecking "None" and checking the categories as appropriate.

So far, seems to be doing the trick!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top