Editing themes, pages, ecommerce.

Permalink
My first problem is with the member page of my site. It would seem one theme I am using has this page and it functions(Imagine). The new theme (Halloween)I applied doesn't appear to have it so I get an error message.
"File /home/users/web/b2019/ipg.name*?/packages/theme_Halloween/themes/Halloween/view.php not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files". I cannot edit or delete this page! what should I do?

Secondly, I would like suggestions on how to implement a shopping cart. I have a free shopsite (limited) account and simple scripts.
I will be selling hundreds of items, that's a lot of "add to cart" buttons. I need help :\

Jdial
 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
View.php is necessary for displaying single pages (the members page). If one of your themes is missing view.php, you can create it by copying the theme's default.php to view.php and editing:

// insert single page content line
print $innerContent;
/*
remove lines for Main area
$a = new Area('Main');
$a->display($c);
*/


This will give you a single page that looks just like the default page. Alternatively, you can copy any of the other page types like sidebar or full width and use them as the basis for view.php.

For shopping, eCommerce does just what you want. It isn't free, but is quick to set up and fairly straightforward.http://www.concrete5.org/marketplace/addons/ecommerce/...
parpaingcrew replied on at Permalink Reply
please,
where we have to be to copy that code in the default.php renamed view.php?

thanks !

// insert single page content line
print $innerContent;
/*
remove lines for Main area
$a = new Area('Main');
$a->display($c);
*/
adajad replied on at Permalink Reply
adajad
In the newly created view.php you can comment out
$a = new Area('Main');
$a->display($c);


and add
print $innerContent;


the end result will be as JohntheFish said above
print $innerContent;
/*
$a = new Area('Main');
$a->display($c);
/*
parpaingcrew replied on at Permalink Reply
here is my view.php content... when I go in my web browser, nothing works and I see the code I added...
thanks for your help

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath()?>/default.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath()?>/typography.css" media="screen"/>
<?php  Loader::element('header_required'); ?>
</head>
<body>
print $innerContent;
/*
$a = new Area('Main');
$a->display($c);
/*
<div id="container">
adajad replied on at Permalink Reply
adajad
See my edited version of your code (make sure to 'View entire code block'):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath()?>/default.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath()?>/typography.css" media="screen"/>
<?php  Loader::element('header_required'); ?>
</head>
<body>
<div id="container">
<div id="content">
   <h1 id="site-title"><a href="<?php echo $this->url('/')?>"><?php echo SITE?></a></h1>
  <?php print $innerContent; ?>
   <div id="footer">
      <div class="left"> 2012 <a href="">The Parpaing Crew</a> official web page. FREERIDE WILL NEVER DYING</div>


I deleted the Main area to further highlight the change made.
parpaingcrew replied on at Permalink Reply
adajad, thanks really much for your reply. Everything works...

all the best
adajad replied on at Permalink Reply
adajad
Just a note though... you should include the following just before your closing /body tag:
<?php Loader::element('footer_required') ?>


So the bottom of your file should look like this:

</div>
    <?php Loader::element('footer_required') ?>
  </body>
</html>
parpaingcrew replied on at Permalink Reply
perfect...
for some pages whose are by default as single page, I need to have them with Left Sidebar.

is it possible to change the "single plage" setting for an other type of page as "Left Sidebar"?

thanks
adajad replied on at Permalink Reply
adajad
You need a view.php for single pages.

Here are more information: http://www.concrete5.org/documentation/how-tos/designers/why-do-i-n...
parpaingcrew replied on at Permalink Reply
true,
so it is not possible to view the members profiles in full page mode for example? We can only view them in single page?

every time an user is registering on my webpage, it will be better if we can see the navigation bar on his profile page too
adajad replied on at Permalink Reply
adajad
do you mean the top bar with 'Edit' and 'Dashboard'?

You should include
<?php Loader::element('footer_required'); ?>


In all your theme php files before the closing /body tag.
parpaingcrew replied on at Permalink Reply
No, it's not about the administration panel
it is about to change a type of page. There are Blog Entry, Full Width, Left Sidebar, Right Sidebar AND Single page.

My question is how to transform a 'Single page' to a 'Left Sidebar' page.

Members profiles are made originally with a 'Single page' which is not appropriate to have an Header nav block.