Request: Mandatory Author's category

Post Reply
User avatar
SadlyMistaken
Jr. Bludit
Posts: 2
Joined: Mon Aug 26, 2019 8:49 pm

Fri Aug 30, 2019 2:43 am

Hello everybody!!

My authors (users that only want to focus on write write write....) are lazy. They don't want to choose a category, they only want to write and "maybe" to choose tags... :D :D :D

nahh... that is a joke... :lol: they always choose a category hahaha

I would like to have an url as categories url... but named with the alias name of the author for example, and then to list the short link cards of their articles.. o maybe i want something like:
http://www.mywebsite.dot/author/author_name/ and then, magic!

The only way i can imagine and manage to do this in that moment is:
- I created a category with the name of the author...
- I created a navigator link in my sidebar with the categories urls...
- I asked to every author to choose their respective category in their articles...

so... my authors are Categories... Anne..is able to see her links cards in mysite.com/category/anne
:? But her articles haven't own category... "Recipes" "Technician" etc...so... TAGS... ( :? )

BUT! maybe it would be easier if in the users table, the administrator could see 2 things.
- A sticky square with label "Mandatory Category" (YES/NO... boolean...whatever)
- A input text to write THAT new category or.. a dropdown to choose the category (better option in my opinion)

and the result of this could be that they would see an inactive dropdown in the category section when they are writting their content.. because It would be the correct one, always... and then only write tags... I don't know..

but... i rather prefer the MAGIC option, muchly

:P hahahaha... Ok, what do you think? tell me please, if that is an absurd idea don't hesitate to tell me too....

Thanks!!! (And apologize my bad english... sorry... i only want to be read for more people in the forum :D) Bye!
Image Fascinado con Bludit :o
User avatar
SadlyMistaken
Jr. Bludit
Posts: 2
Joined: Mon Aug 26, 2019 8:49 pm

Sat Aug 31, 2019 2:59 pm

Sorry I just read that abs301216 asked for the same in 2019/May post:
viewtopic.php?f=6&t=1471

:D
Image Fascinado con Bludit :o
User avatar
Edi
Site Admin
Posts: 1592
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sun Sep 01, 2019 12:03 am

You can use the following to get the username, nickname etc.:

$page->username()

and

$page->user('username')
$page->user('nickname')
$page->user('firstName')
$page->user('lastName')

Together with if conditions in the template home.php you can create author pages for example.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply