Change the create blog post form

edited March 2011 in Modules
If I wanted to make thinks simpler and remove some parts of the form for creating a new blog post, how would I do that?
Thanks for any help!

Comments

  • edited 10:29PM
    There are a couple ways to do it. You could change the blog_posts_model::form_fields() method and unset or alter they type of fields to 'hidden' that are returned from that method.

    Another, less obtrusive way may be to simply target those elements with CSS or Javascript. You can add to the blogs CSS file at fuel/modules/blog/assets/css/blog.css or you could add a javascript file that can be included with the page by adding it to the fuel/modules/blog/config/blog_fuel_modules.php configuration. Also less obtrusive would be to extend that blog_posts_model and overwrite that method and then change blog_fuel_modules.php to point to your model instead.
  • edited 10:29PM
    I always use the second method i.e. target the elements with CSS code and it works very fine. Nice experience.
    AquaJogger Shape Belt
Sign In or Register to comment.