angelmoratilla / digressit

Automatically exported from code.google.com/p/digressit
0 stars 0 forks source link

revisit adding indented sections into Table of Contents #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Eddie, I followed the directions you wrote in response to this issue (previous 
#96, pasted below), and you can see the result on http://jacktest.digress.it

I created a custom first-page menu, and inserted two pages (Part I and Part 
II). 

Two problems:
a) The new first-page menu overrides the existing listing of posts in the table 
of contents 
b) The menu settings allows me to manually add pages, but not posts. 

As a result, I cannot figure out how to make pages AND posts both visible (and 
indented) in the table of contents.

Am I overlooking something? If so, feel free to demonstrate it on this JackTest 
site. Thanks.

"Updates:
    Status: Done
Comment #2 on issue 96 by eddie.tejeda: ability to create indented sections in 
Table of Contents?
http://code.google.com/p/digressit/issues/detail?id=96

In the backend go to: Appearance > Menus

Create a new menu and on the left hand side you'll see an option to add that 
menu to different sections. Add it to: "This menu appears in the first page"

These menus can have child relationships that are not possible with just 
regular posts.

The problem is that the nice roll over on the main page is dependent on the 
order the posts are made and adding a menu will over ride this functionality. 
So you'll also have to add a text field widget to the frontpage as well.

You can add a "Text" widget there.

Appearance > Widgets > Mainpage Widgets

Original issue reported on code.google.com by jackd...@gmail.com on 22 Nov 2010 at 3:07

GoogleCodeExporter commented 8 years ago
the problem is that regular WP posts don't have parent/child relationships - 
only pages do. You can manually add the posts to the menu, but you're right, 
this is not the best solution because it disables the hover over. That effect 
is tightly linked with the way the posts are displayed by default.

I need to think this over a bit more. I want to be able to automatically 
generate the mouseover with any page provided, but that requires a bit of 
detection. I do want to get this feature in though. 

I will give it a go this week. If I can't do it I will be sure this gets 
priority for version 3.1, due a month or so after the initial wave of fixes 
that announcing will surely create.

Original comment by eddie.tejeda on 23 Nov 2010 at 2:25

GoogleCodeExporter commented 8 years ago
Thanks for giving this some thought. 

My ideal Table of Contents would be a series of comment-enabled posts, which 
could be indented as desired, like this:

TOC #1
Post
  post
  post
Post
  post

I initially tried to trick WP by inserting a space at the beginning of the post 
title, which would give the appearance of indenting. But that didn't work. 
Perhaps there's some invisible character that would work?

Alternatively, another solution would be to create a parent-child relationship 
between pages and posts (similar to what I see in CommentPress), like this:

TOC #2
Page
  Post
  Post
Page
  Post

If Pages were comment-enabled in digress.it, this would seem like the best 
approach. But even if Pages did not allow comments, it would still provide a 
useful way of organizing long segments of texts (like book chapters and 
subsections).

Original comment by jackd...@gmail.com on 23 Nov 2010 at 2:39

GoogleCodeExporter commented 8 years ago
This was a very exciting fix! The standard customization menu system is now 
tightly integrated with digressit.. if you organize the posts through the 
backend they will appear in the frontpage as be able to hover over the content 
as well!

Original comment by eddie.tejeda on 15 Feb 2011 at 7:27