Include PivotX blog posts in my site

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Include PivotX blog posts in my site

Postby TheBuke » Tue Nov 19, 2013 12:30 pm

Hi there,

I am completely new to PivotX, but I chose it as I had a very simple request, and from what I read, the PivotX platform was simple (as opposed to Word Press).

I have an existing site with a magazine style front page. I have a very particular CSS styling which I don't want to ignore. All I want to do is to display the blog posts (and nothing else) on the front page. i don't need any stats, keywords, headers, css, tagclouds, links or pages from anywhere else, just the blog posts displayed on my front page. In an ideal world what I would like to do is something like this:

Code: Select all
<?php include("myheader.php);?>
<div class="blogPosts">
     <?php include("pivotx/blogs.php") ;?>
</div>
<?php include("myfooter.php);?>


myheader.php and myfooter.php are files which contain the structure of my site, with the blogs.php whatever file that is required for me to include to display just the blog posts.

Secondary to that - if this is possible - the next step would be to show only the latest 5 blog posts. Again, in an ideal world I would love it to be something like this:
Code: Select all
<?php include("myheader.php);?>
<div class="blogPosts">
    <?php include("pivotx/top5blogs.php") ;?>
</div>
<?php include("myfooter.php);?>


Hopefully you understand the intention. I am extremely happy with the admin console and all the features within the admin page, however I don't need a structural site or CMS, just a web blog displayed on 2 pages of my existing site.

THANK YOU ALL SO MUCH IN ADVANCE FOR YOUR HELP. I truly do appreciate it.

As I mentioned I am completley new to this, however can this be done
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby Harm10 » Tue Nov 19, 2013 4:32 pm

You can use PivotX embedded. Your major problem will be the navigation as soon as you "enter" the PivotX part and getting out again to your own site.
Please give us a link of the site you want PivotX to be part of so we can further investigate.
You are aware that you can make your header and footer part of your own custom theme within PivotX?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Include PivotX blog posts in my site

Postby TheBuke » Wed Nov 20, 2013 10:12 pm

Hi there,

Firstly, thanks for your quick response. At this stage I don't know anything about PivotX, but at first glance, I am struggling to do what I want with the site. I have been playing with PivotX locally, but I want to use it on the current site:

http://www.kamdunk.com/Crossfit/canberra.php

What I am wanting to do is to include the top 5 blog posts on this front page under the BLOG section. As you can see there is a heap of other information on the page, and I only want to display the top 5 blogs in the small section of the page. It is not just a matter of putting my own header and footer on the page. I then want to link to another page from the "See All Blog Posts" link, where it lists ALL the blogs on my site.

When I access the full blog page, i could replace the header and footer to my own (if you are able to point me to the file that it is done in), but the main page has way too may things on the page, and the blog is just a small element on the home page.

I had a look around the themes. I can see the different themes, but I haven't found where to change them from.

You mentioned PivotX embedded. Do you know of any doco about that, or any simple code that you could post here. Is it using an iframe or something?

Sorry for all the barrage of questions. i just wanted to find out whether this tool will work for me before customising a theme and site, and trying to smash it to fit.
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby Harm10 » Thu Nov 21, 2013 6:42 pm

I have looked at your site link. I was under the impression after your first post that you had a running site and were contemplating of putting PivotX in there somewhere.
This is not a running site yet?
Then I would strongly recommend you to do it the other way around: use PivotX as a wrapper of all!
It takes care of spam, has features to hide your mail addresses from crawlers, offers you the possibility of different lay-outs within one site and most importantly in your case takes of the navigation.
Use entries for your blog posts and pages for the more permanent content.
It can take all kinds of php code within its content and more and more and more......

Technically it should be possible to embed it but there is no example for it. As I said you would definitely get problems navigating out of PivotX back to were you came from.

The themes can be downloaded and installed. PivotX comes with some default themes located in the templates folder. If you study theme skinny you should get a grasp of the structure of the templates and the use of Smarty.

You can have a look at some of the demo sites in http://forum.pivotx.net/viewtopic.php?f=2&t=81 or you can look at my own site http://www.remark-webdesign.nl/weblog/remarkwebdesignen to get a feeling of what you can accomplish with PivotX.

If you want to start totally afresh then maybe Bolt the successor of PivotX could be to your liking. http://bolt.cm/
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Include PivotX blog posts in my site

Postby TheBuke » Tue Jan 21, 2014 12:29 am

Thanks Harm10,

I have now set up my site using a custom theme. I have it looking the way I would like, however I am trying to use PivotX to do something different. Because you were helpful before, I was hoping you may be able to help me this time? I have posted a question about how to structure my startpage to include subsections of PivotX pages that i have created. Any help/suggestions?

http://forum.pivotx.net/viewtopic.php?f=11&t=4451
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby TheBuke » Thu Jan 30, 2014 2:52 pm

Firstly, thank you all for all your help so far. The site is coming along really well, and now I just have a few small questions to ask.

I have managed to pull in the top 5 entries from the weblog "Crossfit Phillip", which grabs the latest 5 entries with the subweblog category of "phillip". This works exactly as intended - great!

What I then want to do is also display another weblog on the start page which is the "wod" weblog, which grabs the latest 1 entry with the subweblog category of "wod".

The way I pulled in the "phillip" weblog was to use the following code:

<!-- begin of weblog 'standard' -->
[[ subweblog name="standard" ]]
[[ include file="`$templatedir`/weblog.tpl" ]]
[[ /subweblog ]]
<!-- end of weblog 'standard' -->
<!--[[ paging action="digg" ]]-->

Within the weblog.tpl file there is no reference to the "phillip" weblog, so i am not sure how I would pull another weblog in? I hope I am explaining myself correctly, and if I am not using the correct terminology, please forgive me.

Here is the latest site so you can better understand what I mean:
http://webcloud57.au.syrahost.com/~crossf21/phillip/

"WOD" section I want the latest 1 entry with the category "WOD" to be displayed
"NEWS" section I want the latest 5 entries with the category "PHILLIP" to be displayed (currently working).
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby TheBuke » Thu Jan 30, 2014 3:27 pm

OOOOOHhh... I got it working!! Nice... now i understand the subwebligs... that is great!

OK... next brainbuster.

I want to have 2 sites that use the same instance of pivotx. Is that possible?

The two sites are hosted together, and are simply using subdomains on our webhost:

phillip.domainname.com.au (public_html/phillip)
city.domainname.com.au (public_html/city)


What I want is for the phillip site to access a weblog called "phillip", and the city one to access a weblog called "city". I would then choose a different theme for each "crossfitPhillip" - "crossfitCity"

Currently I can access the phillip weblog from the phillip subdomain, by including the render page in the index file within the folder:

<?php include("../pivotx/render.php");?>

If I do the same from the city subdomain, there is no way to differentiate which weblog I wan to view. Any help would be great.
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby Harm10 » Thu Jan 30, 2014 5:37 pm

Read this http://book.pivotx.net/page/1-15 and you will be even more astonished........
It is about multi-sites.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Include PivotX blog posts in my site

Postby TheBuke » Mon Feb 03, 2014 11:17 am

Thanks Harm10!

I looked at the page you directed me towards, and it seems to make sense, in parts. I was wondering whether you might be able to help explain the concept to me using my real example... Here is my setup:

/var/www/pivotx/ (1 pivotx instance)
/var/www/phillip/ (currently viewing the phillip weblog here) --- eventually viewing at: phillip.companyname.com.au
/var/www/city/ (currently viewing the phillip weblog as I can't workout how to view the city weblog) --- eventually viewing at: city.companyname.com.au

So based on the page that you sent me, all I need to do is create the following folders:

/var/www/pivotx/sites/phillip.companyname.com.au/db
/var/www/pivotx/sites/phillip.companyname.com.au/templates
/var/www/pivotx/sites/phillip.companyname.com.au/images
/var/www/pivotx/sites/city.companyname.com.au/db
/var/www/pivotx/sites/city.companyname.com.au/templates
/var/www/pivotx/sites/city.companyname.com.au/images

If that is correct, where do I set the virtual host?

--------------------------------------------

Maybe this is overkill. What I would ideally like to do is, I want to have 2 sites off the 1 instance of Pivotx.

phillip.companyname.com.au ---- displaying Phillip weblog
city.companyname.com.au ---- displaying City weblog

Some of the content I would like to share over both sites, but when the content is re-used I would like them to be in different themes. Is that possible?
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Re: Include PivotX blog posts in my site

Postby TheBuke » Mon Feb 03, 2014 11:30 am

Sorry - I forgot to thank you for all your help!!

Web address where it is temporarily hosted is here (brackets identify where it will eventually be hosted):

http://webcloud57.au.syrahost.com/~crossf21/ (http://www.companyname.com.au)
http://webcloud57.au.syrahost.com/~crossf21/phillip/ (http://phillip.companyname.com.au)
http://webcloud57.au.syrahost.com/~crossf21/city/ (http://city.companyname.com.au)
http://webcloud57.au.syrahost.com/~crossf21/pivotx/ (http://www.companyname.com.au/pivotx/)

List of some of the items that will be reused:

Pages
    About
    Events
    Contact Us

Entries
    All entries with the category "WOD"

(Entries with category "Phillip" will only be shown on the Phillip weblog)
(Entries with category "City" will only be shown on the City weblog)
TheBuke
 
Posts: 12
Joined: Tue Nov 19, 2013 12:03 pm

Next

Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 5 guests

cron