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

4 weeks 2 days ago - 4 weeks 2 days ago #74971 by alog
Thanks so much for the "Authored Items" field type included in new FC version .

i configured it but how can i display username instead of (author) name ?
Content by author: username

and i’d like to create a new custom value suffix « More items by author »
Is it possible and how?

and at last to create link 'User Profile link' Flexicontent toward Community Builder profile.

Some help would be great. thank you.

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

4 weeks 21 hours ago #74999 by ggppdk
Hello

yes

such a field is needed as much as authored-items field is needed


-- 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 review. Thanks!

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

4 weeks 21 hours ago #75000 by alog
Hello,
thanks for replying
but how can i display
Content by author = "username" instead of (author) "name" ?

and where can i customize value suffix « More items by author » ?


such a field is needed as much as authored-items field is needed
please explain

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

2 weeks 6 days ago #75084 by alog
Hello,

I continue to have trouble with the "Authored Items" field type.

Do you have an idea how to display the username instead of author name

Content by author: "username"

and where can i change and customize value suffix « More items by author » ?

Thank you for your guidance.

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

2 weeks 5 days ago #75089 by ggppdk
Hello

I have added layout support to the "authoritems" field
[url]
https://github.com/FLEXIcontent/flexicontent-cck/archive/3.2.1.x.zip
[/url]

you can duplicate
plugins/flexicontent_fields/authoritems/tmpl/value_default.php
as
plugins/flexicontent_fields/authoritems/tmpl/value_mywebsite.php

and customize the link inside
plugins/flexicontent_fields/authoritems/tmpl/value_mywebsite.php


-- 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 review. Thanks!

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

2 weeks 4 days ago #75093 by alog
Hello,
thank you, everything is done but after duplicating
how can i customize this link to display only the author ‘username’ instead of author ‘name’?

and remove « Content by author: » in componentheading

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

2 weeks 4 days 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 review. Thanks!

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

2 weeks 4 days ago - 2 weeks 4 days 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 .

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

2 weeks 2 days ago - 2 weeks 2 days 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: ')
	$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 review. Thanks!

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

4 days 3 minutes 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.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.