Article not accessible to Edit/ Extra Field not visible
Morgain 37
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Article not accessible to Edit/ Extra Field not visible
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Look like there is a bug in combination with the XenForo integration. That's why the edit link is not showing up. I will look into it later.
You need to add the extra fields in the HTML template first. For example, in articles_pages (that's the template that contains the entire output for the article pages).
Manage Templates => Edit => Articles => Edit => articles_pages => Edit
Now if you want to use the first field for the author bio (as an example) you need to change the template like this:
{$insert['article_extraX']} (replace X with the field number) will be replace with the output of the extra field in question
You need to add the extra fields in the HTML template first. For example, in articles_pages (that's the template that contains the entire output for the article pages).
Manage Templates => Edit => Articles => Edit => articles_pages => Edit
<!-- Template: articles_pages -->
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<h2>Posted by: {$insert['article_author']} on: {$insert['article_date']} [ <a href="https://www.contentteller.com/index.php{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html">Print</a> | <a href="https://www.contentteller.com/index.php{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} comment(s)</a> ]</h2>
<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}{$insert['articlepage_text']}{$insert['article_lightbox']}{$insert['article_toc']}{$insert['article_social']}{$insert['article_facebook']}
</div>
<br />
Now if you want to use the first field for the author bio (as an example) you need to change the template like this:
<!-- Template: articles_pages -->
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<h2>Posted by: {$insert['article_author']} on: {$insert['article_date']} [ <a href="https://www.contentteller.com/index.php{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html">Print</a> | <a href="https://www.contentteller.com/index.php{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} comment(s)</a> ]</h2>
<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}{$insert['articlepage_text']}
<br /><strong>About the author:</strong>{$insert['article_extra1']}<br />
{$insert['article_lightbox']}{$insert['article_toc']}{$insert['article_social']}{$insert['article_facebook']}
</div>
<br />
{$insert['article_extraX']} (replace X with the field number) will be replace with the output of the extra field in question
What I found is when I add a new Article I have
Article Title
Article Summary:
and
Page Title (option)
Page Text:
Plus I'd created an Extra Field.
Well I filled all these in. but first of all the Extra Field does not display on the frontend.
Secondly if I try to return to Edit either of these Articles in the admincp I can't.
In Manage Articles there's an Edit link on the right for each Article.
But when I click it it only offers me the Article Title: and the Article Summary:
- not the Page Title or the Page Text which is what I'd most often need to edit.
It does show the Extra Field I made though this does not display on the frontend.
LATER - I found it though it's a bit odd and indirect.
You have to click to Edit the Article, as I did above.
Then go through PAGES on the top horizontal menu,
open that - and click to Edit again.
Any chance of a frontend EDIT link straight into the Article edit?
Then pagination links top and bottom to click to edit?
Still interested to know why Extra Fields don't display publicly. The only things the Manage Extra Fields page offers is to name the field and specify text field, text area, dropdown. There's no visible/ Hide optiop to check unless I have missed something..