2 min

Resolved - Enable wiki link feature to non-existing articles

finished on 17sep2013.

enabled the function to only work when saving a post and not on preview - 6sep2013

changed to inprogress on 5sep2013

When using the double brackets around a title, if the title of the post does not exist, enable the system to automatically create a post with that title. done on 5sep2013

The post body text will contain only a hashtag called draftstub and the power command for draft equals yes. done on 5sep2013

Then on the user profile page, show:

5sep2013 - still need to add this info to the user profile page. - completed on 17sep2013

Draft Blog Posts : 10 --- Stubs : 8

The 8 count for Stubs would come from the tag count for draftstub for the user.

The 8 would be a link that shows the posts with that hashtag. These are not private posts. But they do not appear on the front page.

Problem: If I make a mistake with the title text that's surrounded by the double bracket case, and I'm unaware of the mistake, a draft stub post is created, and I may not realize it until I click that link within the post or I view the number of draft stubs on my profile page. I would need to delete mistakes, I guess. And test to ensure the links work. done on 5sep2013

follow-up to above paragraph - 5sep2013 - the non-existent post is created during Preview. Should I change this so that during preview, the "non-existent" post is not created, so that I can see that it's a non-existent post, but when the post is saved, then the new stub post is created? Tags are not created within the database during preview. I may back out this feature, or make it a config param. [still need to config file param implement -6sep2013] 17sep2013 i decided to not make this a config param. works fine with creation on save and not preview.]

It was easy to implement, since I already had REST code in place for adding a blog and a microblog. The code makes a REST call to itself to add the blog stub in draft mode. But I think that I'll do this after the blog post is saved and not during the preview stage. And I think that I'll add this function as a config param too.

In a wiki like my Parula code that powers ToledoTalk.com, the link to a non-existent post is displayed in red, so that it's obvious. But in this new proposed system, the link does point to an existing post because the stub post is automatically created. done on 5sep2013

I think that I'll employ this feature as described above because I do not want to track and edit all posts that link to the non-existent or stub post and update the posts with the link to change the link color, etc., as I do with the wiki code in Parula.

To function similar to Parula, I would need to maintain another database table of titles for non-existent or stub posts.
#junco #resolved

From JR's : articles
514 words - 2760 chars - 2 min read
created on
updated on - #
source - versions

Related articles
Resolved - Add auto-save and live preview to blog posts - Aug 21, 2013
Add a night mode display - Aug 08, 2013
Resolved - Add sort options to tag list page - Jun 27, 2013
Resolved - Add client-side Textile markup editor - Aug 21, 2013
Resolved - Add pound sign and period punctuation buttons to phone and tablet displays - Jun 27, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 6:16 p.m. EST