Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Cannot change the Extended news required setting from Yes to No

Asked Modified Viewed 733 times
G
Goordon
G
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hello.

We're currently building a Website that doesn't require the extended news feature - we want the "Snippet" and the "Extended" to be the same.

I assume the "Required extended news?" setting in the News Infusion is what we're looking for. Sadly - changing it from "Yes" to "No" and confirming it by hitting the "Save Settings" button makes the page reload, claiming "Settings successfully updated" - but the field Jumped back to "Yes". Trying to submit news without the extended tab filled in doesn't work either since it claims it's a required field.

The only error we get in PHPFusions Error log is this one:

File: news_settings.php
Page: /infusions/news/news_admin.php?aid=82994d78116bdea4&section=settings
Line: 58
Error message: Undefined index: news_submission_access

It's not directly related but i guess close enough in the same file to cause the issue - preventing our setting from saving.

We're on 9.10.11
PHP 7.3.31-1
Apache 2

All up2date.

Edit:

The error message copied above only seems to appear when I remove all of the users from the "Access to Submit page" field. It will then default to "Members" which i guess is fine. Sadly, this does not change anything about the "No" -> "Yes" setting behaviour, even when not touching the field with the members list - not outputting the error.
Edited by Goordon on 03-01-2022 00:34,
0 replies

3 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You need to edit the news template if you want it to be same ( news_news / news_extended ) in : /infusions/news/templates/news.tpl.php
Remove news_news data there, depending on theme you might need to edit the template in the Theme engine.
0 replies
G
Goordon
G
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Hey Falk thank you very much for your response.

I adjusted these variables in:
news/templates/news.tpl.php
and my Themes
/themes/Darkcore/templates/news.php

This actually works for sub-pages generated by the news infusion like [URL]/infusions/news/* but sadly this doesn't change anything about the homepage view where it's supposed to display the news_extended content.

I found the "homepage.tpl.php" in /themes/templates/global/ which seems to generate the "homepage" view including the news snippets.

In there "function display_home($info)" is defined and later $info is used as follows:

 foreach ($info as $module) {
 opentable($module['blockTitle']);
 if (!empty($module['data'])) {
 foreach ($module['data'] as $data) {
 ....
 echo ($data['content']);


$data['content'] is the preview snippet bit and not "news_extended"

when var_dumping $data[]; it contains all kinds of information about the News, sadly it does not contain the extended version, just the preview snippet bit. I feel like I'm tapping in the dark when it comes to bringing the news to the home-view of the page. I feel like changing the core files of phpfusion that feed display_home($info) with another info including the extended news is probably bad practice. Since I'm completely new to the CMS i'm probably approaching this the wrong way either way.

Maybe you can help me out yet another time?

Thank you very much for your time!
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Great that you found it, I created most of Darkcore, so should not be to tricky for me to refresh the memory on my self..
So here, themes/Darkcore/templates/home.php you have a pre-defined override of that home module.
To Enable it, open Darkcore/theme.php and remove comment from //require_once THEME.'templates/home.php';
Now you are feel to customize your home module without touching Core.
Edited by Falk on 14-01-2022 05:32,
0 replies

Labels

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
G
G
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet