Comments (3)
Yes, that makes sense, though I'm wondering if then it shouldn't also be checked in the PHP code. I'm a bit reluctant to add more configuration options so I would probably make this default. I'm only wondering one thing: if people are using this to simply create pages that are just named after the current date by using the date prefix configuration option which would mean that an empty title is okay.
from plugin-blog.
I think it would be ok to use the html-attribute only.
An option is a must in my opinion. I recognized that if you use a namesspace e.g. ymd with a trailing ":", the page gets the name "start" automatically. I think, there may be a usage, where an empty title is ok. But if you use e.g. ymt_ as prefix, an empty title results in an ugly pagename. The template may fit with the title, too.
So i would be glad to force the user to use a title.
from plugin-blog.
This is a quite important change imo, because users entering an empty title will create blog/start.txt, which is not shown in the blog list. So, a possibly long text appears to be lost, when in fact it's just in the start page of the blog.
I have added required="yes" to the input file. Now, if the input field is empty, a popup will flash up.
syntax/blog.php
205 DOKU_TAB.DOKU_TAB.'<input class="edit" type="text" name="title" id="blog__n ↪ewentry_title" size="40" tabindex="1" required="yes"/>'.DOKU_LF.
from plugin-blog.
Related Issues (20)
- floating newentry_form HOT 5
- working with <WRAP column> plugin HOT 1
- Print preview does not show the correct result. HOT 2
- namespace in Chinese can't be parsed HOT 1
- update version HOT 1
- Failed to handle action: preview HOT 1
- startSectionEdit errors on latest DokuWiki “Greebo” HOT 8
- Relative path ".:" does not work
- "~~DRAFT~~" does not work HOT 2
- Article pages do not show when they are in namespace with non-ascii characters
- Cache of archive page not correctly invalidated
- httpd core-dump error when plugin enabled on Igor/PHP 8 HOT 1
- I translated the plugin to Catalan language HOT 2
- [IGOR] New page with semicolon in title results in colon in namespace HOT 6
- new version, old date HOT 3
- sortkey configuration doesn't work; entries are always sorted by creation date HOT 2
- Problems with Sorting HOT 14
- << new entry | old entry >> not rendered properly
- Blog links to previous/next entries page do not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-blog.