Coder Social home page Coder Social logo

Comments (3)

michitux avatar michitux commented on August 16, 2024

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.

qwertologe avatar qwertologe commented on August 16, 2024

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.

bernhardbrunner avatar bernhardbrunner commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.