Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
so Maybe something is not set up right but here it goes. I get a 403 error when trying to go from my list of "blogs" (honestly is more of a shopping cart but nothing is being bought just display). to an individual listing. now if I type in the direct address ie. mywebsite.com/bloglist.php?p=5 it will go without issue. please see the code below and let me know. thanks!

this is what is being used as a blog list when P=null

Code: Select all
<?php require_once( '../cms.php' ); ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Michael's Auction</title>

    <!-- Bootstrap -->
    <link href="../../css/bootstrap.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  <cms:embed 'navbar.html' />

  <div class="card-columns">
    <cms:pages masterpage='auction_house/auctionhouseitem.php'>
    <!-- CMS Cloning -->
    <div class="card">
      <img class="card-img-top img-thumbnail" src="<cms:show itemimage/>"
       alt="Card image cap">
      <div class="card-block">
        <h4 class="card-title"><cms:show k_page_title/></h4>
        <p class="card-text"><cms:show itemdescription /></p>
        <a href="<show k_page_link/>" class="btn btn-primary">Read More</a>
      </div>
    </div>
   
    </cms:pages>
  </div>

    <hr>
   
    <footer>
        <div class="row">
            <div class="col-lg-12">
                <p align="center">Copyright &copy; <img src="../logos/michaelslogo-sm.png" height="50px" width="160px"></p>
            </div>
        </div>
        <!-- /.row -->
    </footer>



    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="../js/bootstrap.min.js"></script>
   </body>
</html>
<?php COUCH::invoke() ?>


this is the individual items (aka "blogs")

Code: Select all
<?php require_once( '../couch/cms.php' ); ?>
<cms:template title='Auction House Item' clonable='1'><!--CMS Editable content-->
  <cms:editable
    label='Auction Date'
    name='date'
    type=text
    desc='Auction Date'
  />
  <cms:editable
    label='Lot Number'
    name='lotnumber'
    type=text
    desc='Lot Number'
  />
   <cms:editable
    label='Image'
    name='itemimage'
    crop='1'
    width='800'
    height='600'
    type='image'
  />
  <cms:editable
    label='Description'
    name='itemdescription'
    type='richtext'
    desc='Enter Item Description'
    />
</cms:template>

<cms:if k_is_page >

  <!DOCTYPE html>
  <html lang="en">
    <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
      <title>Michael's Auction</title>

      <!-- Bootstrap -->
      <link href="../css/bootstrap.css" rel="stylesheet">

      <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
      <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
      <![endif]-->
    </head>
      <body>
      <cms:embed 'navbar.html' />

      <DIV class="container-fluid">
        <DIV class="header" align="center">
          <h1 class=title><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h1>
          <p style="font-size: small;"> Auction Date:<cms:show date /> | Lot Number:<cms:show lotnumber /></p>
          <img src="<cms:show itemimage/>"
          <p><cms:show itemdescription /></p>
        </DIV>
      </DIV>



         
     
      <hr>
     
      <footer>
          <div class="row">
              <div class="col-lg-12">
                  <p align="center">Copyright &copy; <img src="../logos/michaelslogo-sm.png" height="50px" width="160px"></p>
              </div>
          </div>
          <!-- /.row -->
      </footer>



    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js" integrity="sha384-THPy051/pYDQGanwU6poAc/hOdQxjnOEXzbT+OuUAFqNqFjL+4IGLBgCJC3ZOShY" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js" integrity="sha384-Plbmg8JY28KFelvJVai01l8WyZzrYWG825m+cZ0eDDS1f7d/js6ikvy1+X+guPIB" crossorigin="anonymous"></script>
    <script src="/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
     </body>
  </html>

<cms:else />
  <cms:embed 'auctionhouse.php'/>
</cms:if>



<?php COUCH::invoke(); ?>
Pretty messy description of the problem :( If you expect some attention, you may consider updating post with server folders structure and file naming. It's not clear where files are located. if setup is online I can take a look first-hand.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
2 posts Page 1 of 1