Table of Contents

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/11/2010 12:06:06 AM
Gravatar
Total Posts 11

Table of Contents

Could someone help me to figure out how to add a table of contents generator inside a blog post. Thank you.

3/13/2010 7:14:41 PM
Gravatar
Total Posts 11

Re: Table of Contents

I need to get this table of content generator. I'm willing to pay. Can someone help me please.

3/16/2010 10:25:29 PM
Gravatar
Total Posts 11

Re: Table of Contents

Hi

Let me rephrase my question regarding table of contents.

In my blog entry, after saving it, could I insert a data grid view, showing all H1 headings?

Is this possible?

 

Thanks,

Manny

3/17/2010 10:10:45 AM
Gravatar
Total Posts 18439

Re: Table of Contents

Hi Manny,

DataGrid and GridView are server controls, you cannot add server controls into html markup.

If you mean a list of all the h1 elements within the blog post, I do not know a way to automate that offhand. You could probably implement something with jquery but a javascript solution would only work on the site it would not work in the RSS feed for users who subscribe via feed readers like google reader.

I would also point out that really within a blog post you should start with h3 because the site title is h1 and the title of the blog feature is h2. Note that in CKeditor and FCKeditor we alias h3 as h1 so when you choose h1 it is really h3. We do this to encourage the correct structure, however if using TinyMCE we don't have a way to alias it so h1 really is h1 in that editor.

Additionally, a table is not a good choice for a table of contents, tables should only be used for tabular data. A list of of headings would be better with a ul or ol that links to anchor tags at the heading elements.

Unfortunately I don't know of a good way to create that other than manually.

Hope it helps,

Joe

3/17/2010 10:59:22 AM
Gravatar
Total Posts 11

Re: Table of Contents

Thank you for your answer, I'll buy a beer for you.

Manny

You must sign in to post in the forums. This thread is closed to new posts.