Topic: Open news from homepage to another page of the website

Hello everyone
I'll try to explain my situation :
I have installed Cutenews 2.0.2 on my website and I have around five categories (technology, cinema,...)
What I am trying to do is to display on my homepage the five latest news (the newest one with short story and other four as headlines beside). That's for each category of my site.
Now what I would like to do and I am not able is to open the news full story in another page of the website instead of open on the homepage.
Here is what I tried but it doesn't work :

                <div class="article1" align="center">
                      <?php

                    $number = 1;
                    $template = "homepage";
                    $category = "1";
                    $static = TRUE;
                    include("Blog/show_news.php");            
                
                    ?> 
                </div>
                
                                
                                
                                
                <div class="article2" align="right"> 
                    <?php

                    $number = 4;
                    $start_from = 1;
                    $template = "homepage-miniatures";
                    $category = "1";
                    $reverse = TRUE;
                    $static = TRUE;
                    include("Blog/show_news.php");
                
                    ?>
                 </div>

Any help will be appreciate
Thank you very much!

Re: Open news from homepage to another page of the website

I use

    $PHP_SELF = '/full-story.php';
    $QUERY_STRING = 'var1=value1&var2=value2';

. Just change the link http://cutephp.com/forum/style_emoticons/default/smile.gif

Hello everyone
I'll try to explain my situation :
I have installed Cutenews 2.0.2 on my website and I have around five categories (technology, cinema,...)
What I am trying to do is to display on my homepage the five latest news (the newest one with short story and other four as headlines beside). That's for each category of my site.
Now what I would like to do and I am not able is to open the news full story in another page of the website instead of open on the homepage.
Here is what I tried but it doesn't work :

                <div class="article1" align="center">
                      <?php

                    $number = 1;
                    $template = "homepage";
                    $category = "1";
                    $static = TRUE;
                    include("Blog/show_news.php");            
                
                    ?> 
                </div>
                
                                
                                
                                
                <div class="article2" align="right"> 
                    <?php

                    $number = 4;
                    $start_from = 1;
                    $template = "homepage-miniatures";
                    $category = "1";
                    $reverse = TRUE;
                    $static = TRUE;
                    include("Blog/show_news.php");
                
                    ?>
                 </div>

Any help will be appreciate
Thank you very much!

Re: Open news from homepage to another page of the website

I use

    $PHP_SELF = '/full-story.php';
    $QUERY_STRING = 'var1=value1&var2=value2';

. Just change the link http://cutephp.com/forum/style_emoticons/default/smile.gif


Hello
Thank you very much for your reply
I am not sure to understand your code.
My knowledge in php is limited
Should I insert that in the code I already have or replace it?

Thanks

Re: Open news from homepage to another page of the website

Hello
Thank you very much for your reply
I am not sure to understand your code.
My knowledge in php is limited
Should I insert that in the code I already have or replace it?

Thanks


Add it under both of your $number.... Bits http://cutephp.com/forum/style_emoticons/default/smile.gif should work fine http://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Open news from homepage to another page of the website

Add it under both of your $number.... Bits http://cutephp.com/forum/style_emoticons/default/smile.gif should work fine http://cutephp.com/forum/style_emoticons/default/smile.gif


Here is what I tried. But I have Access denied

                <div class="article1" align="center">
                      <?php

                    $number = 1;
                    $PHP_SELF = 'blog/core/includes/full_story.php';
                            $QUERY_STRING = 'var1=value1&var2=value2';
                    $template = "homepage";
                    $category = "4";
                    $static = TRUE;
                    include("Blog/show_news.php");
                
                    ?> 
                </div>
                
           
                
                <div class="article2" align="right"> 
                    <?php

                    $number = 4;
                    $PHP_SELF = 'blog/core/includes/full_story.php';
                            $QUERY_STRING = 'var1=value1&var2=value2';
                    $start_from = 1;
                    $template = "homepage-miniatures";
                    $category = "4";
                    $reverse = TRUE;
                    $static = TRUE;
                    include("Blog/show_news.php");
                
                    ?>
                 </div>

Re: Open news from homepage to another page of the website

I finally figured out how to solve the problem
Thank you very much

Re: Open news from homepage to another page of the website

I finally figured out how to solve the problem
Thank you very much


Hello Marc,

I want the same, ik want the full story open on another page but can not get
it working correctly. How did you fix that?

Re: Open news from homepage to another page of the website

Hello Marc,

I want the same, ik want the full story open on another page but can not get
it working correctly. How did you fix that?


Hello
In my case, I have articles appearing on the homepage and I want them open in full in another page not on the homepage. So what I did in the home page you have that code :

<?php
                    $number = 1;
                    $start_from = 5;
                    $template = "homepage";
                    $category = "1";
                    $PHP_SELF = 'article.php';
                    $QUERY_STRING = 'var1=value1&var2=value2';

                    $static = TRUE;
                    include("yourpath/show_news.php");                           
                    ?>


The most important things to get it works is the code in bold. Don't forget to put $static=True;
After you need to create another page where you want the articles appear. For me it's the page article.php appearing in the code : $PHP_SELF = 'article.php';
On that page you include the code to display the article in full story

<?php               
                    $template = "yourtemplate";
                    include("yourpath/show_news.php");                       
                    ?>



Good luck