This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mego
Mego

Hello there, I have several questions about RainLab plugins, cause PHP code is obscure and the documentation is miserable

  1. USER PLUGIN

1.1 I don't know, if I am doing something wrong, but I can't understand, how can login, and register form works with method="get"? Are you kidding me? My password written in query string! How can I fix it? I can't even find any settings

1.2 After registration my account doesn't work, and the database table is still empty.

1.3 How can I edit for example labels in forms, or placeholders? Can I hard rewrite existing code in plugins/rainlab/user/... ?

  1. USER BLOG

2.1. Everything is good, but I tried to view last three articles on homesite. If I use component, it always gives me the next page links. However, I don't want another pages, I want to write down only excerpt of last three articles with links. Nothing more. Can I make new component on my own? And what happend after automatic update of the plugin?

2.2. I need to write a title of Article in article. The title should be from database's table (there's column called "title") and should be based on current opened article name. How can I do that? The delusions in "documentation" naturally doesn't work.

2.3. I want to give users place to comment, and rate the articles. I know, how can I do that? As I new plugin, or hardly programme into the existing blog?

2.4. If I want to edit view of articles, should I make new file next to the "default.htm"? Or should I edit directly default.htm?

Thank you for each help

Last updated

axomat
axomat

1.2 What do you mean by "my account doesn't work" what are you expecting it to do? For exampe, do you reaise you can use the session component to protect pages to only logged in users. I dont understand why your database table would be empty though.

1.3 You can override component partials using theme/{theme_name}/partials/{component_alias_name}/{partial_name}. This way you can change labels, move everything around how you like and it will not be affected after a plugin update.

2.1 see 1.3

2.2 see 1.3

2.3 I dont know a way to do that with the basic blog but the proBlog does it I think.

2.4 see 1.3

Last updated

Mego
Mego

I dont understand the 1.3 answer. What should I create for example?

theme/my_theme/partials/??/??

What is component_alias_name and what is partial_name?

axomat
axomat

The component alias is the name you give the component when you add it to a page.

The partial name you find by looking at the component views in the plugin which you find in plugins/{author}/{plugin name}/components/{component name}/* where you will find at least a default.htm but this might call other partials, all of which you can override.

Once you have done it once you will realise it is actually very straightforward, honestly!

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.