Create and link custom field 'Author' to CB user profile

More
5 years 6 months ago #75096 by ggppdk
Hello

about "Content by author",
1. Go to Extension / Languages / Overrides
2. Filter by language e.g. "English"
3. Click New and inside the (new) override form, inside the search input box paste:
Content by author

4. If message to wait for cache refresh then wait, and then click the search button
5. Click on the result to load it
6. Go to the right and enter a new custom language translation at the "Text" box and save, you can even enter empty


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #75098 by alog
Hello,
thank you for the tip. worked like a charm!
but how remove colon : after « Content by author »

and i didn’t find a solution to replace or select displayed value 'Author’s Name' by 'Author’s username' .

it could be interesting to have choice to select to display author's name or his username in the "Authored Items" field type

like value selection in the 'created by' field type .
Last edit: 5 years 5 months ago by alog.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #75107 by ggppdk
Hello

Edit your template file
component/com_flexicontent/template/tttt/category(_html5).php

just before:

// If customizing via CSS rules or JS scripts is not enough, then please copy the following file here to customize the HTML too
include(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'tmpl_common'.DS.'category.php');



Add (just do not forget to customize the title 'Items of the user: ')
Code:
$app = JFactory::getApplication(); $layout = $app->input->getCmd('layout'); $authorid = $app->input->getInt('authorid'); if ($layout === 'author') { $authorObj = JFactory::getUser($authorid); $custom_heading = 'Items of the user: ' . $authorObj->username; $this->params->set('page_heading', $custom_heading); JFactory::getDocument()->setTitle($custom_heading); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 5 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #75197 by alog
Hello,

sorry, I tried but it did not work out.

Whatever I try to edit in the FC template (category_html5.php), I can't get it to work!
i have always author’s name instead his username as displayed value

Could you help me please?
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #75202 by ggppdk
Hello


please send me a pm with super admin access

and to make this quick and easy for me
include
- the frontend URL that shows the result (i will also confirm that you are editing the correct template too)
- the name of the template that you are editing in backend


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #75204 by alog
Hello

PM sent

thank you!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.605 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline