Forum

Thread tagged as: Question, Problem

Perch blocks

Hi,

Can you see what i'am doing wrong?

<perch:before>
  <div class="container margin-30-bot">
    <div class="row">
      <div class="col-md-12">
          <img src="<perch:content type="image" id="image" label="Topfoto" required="true" width="1170" height="340" crop="true" />" class="img-responsive"  alt="<perch:content type="text" id="alt" label="Foto beskrivelse" required="true" help="Beskriv hvad der er på billedet" title="true" />" />
      </div>
    </div>
  </div>

  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <h2>
          <perch:content id="header" type="text" label="Overskrift" required="true" title="true" />
        </h2>
      </div>
    </div>
  </div>

  <div class="container">
    <div class="row">
      <div class="col-md-8">

</perch:before>

      <perch:blocks>

        <perch:block type="brødtekst" label="Tekst">
            <div class="row">
              <div class="col-md-12 margin-30-bot">
                <perch:content id="bodycopy" type="textarea" label="Brødtekst" markdown="true" editor="markitup" imagewidth="640" imageheight="480" />
              </div>
          </div>
        </perch:block>

        <perch:block type="Stort billede" label="Fuld bredte foto">
          <div class="row">
            <div class="col-md-12 margin-30-bot">
              <img src="<perch:content type="image" id="Largeimage" label="Image" />" class="img-responsive" alt="<perch:content type="text" id="alt" label="Beskrivelse" required="true" help="Foto beskrivelse. Bruges bl.a. til Google søgemaskine optimering" title="true" />" />
            </div>
          </div>
        </perch:block>

        <perch:block type="Video" label="Video">
          <div class="row">
            <div class="col-md-12 margin-30-bot">    
              <a class="youtube fancybox.iframe" href="<perch:content id="youtubelink" type="text" label="Indsæt YouTube link" help="Fx. https://www.youtube.com/embed/xxxxxxxxx" required="false" />?autoplay=1">
                <img src="<perch:content type="image" id="youtubefoto" label="YouTube foto" />" class="img-responsive video" alt="<perch:content id="youtubelinktekst" type="text" label="YouTube tekstbeskrivelse" markdown="false" editor="markitup" />">
              </a>            
              <p class="imagetext">
                <perch:content id="youtubelinktekst" type="text" label="Beskrivelser af video" markdown="false" editor="markitup" />
              </p>
            </div>
          </div>
        </perch:block>

      </perch:blocks>

    </div>

    <perch:after>

  <div>

        <div class="col-md-3 col-md-offset-1 margin-bot-30-mobile margin-bot-30-tablet">
          <div class="infobox">
            <h3>
              Kontakt
            </h3>
            <h4>
              Palle Thaisen
            </h4>
            <span>
              Partner
            </span>
            <p>
              telefon 4636 6000 <br />
              mobil 4025 5000 <br />
              e-mail pt@rir.dk <br />
          </div>
        </div>

    </div>
</div>

  <!-- MAIN CONTAINER END -->
  </div>

  </perch:after>
Simon Rothenborg

Simon Rothenborg 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What problem are you seeing?

Hi Drew.

It adds the content multipel times in Perch :)

https://imgur.com/a/miXlY

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostic Report, we ask for this when you post to the forum as it really does make helping you a lot faster.

Of course.

Perch: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (4.5.4)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (678), perch2_content_items (117), perch2_content_regions (10), perch2_navigation (2), perch2_navigation_pages (2), perch2_page_templates (1), perch2_pages (5), perch2_resource_log (259), perch2_resource_tags (0), perch2_resources (47), perch2_resources_to_tags (0), perch2_settings (11), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: ckeditor, markitup, redactor, tinymce
H1: 03a5b411648e53ee353623d157ad6ea4
L1: 21a071eacd88ee3cb66f6994af7315ec
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.7.2: done
latest_version: 2.8.15
on_sale_version: 2.8.31
update_2.8.31: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: rir
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/Copenhagen
PERCH_EMAIL_FROM: simon@turnleft.dk
PERCH_EMAIL_FROM_NAME: Simon Rothenborg
PERCH_LOGINPATH: /admin
PERCH_PATH: /Users/rothenborg/Sites/rir.dk/public/admin
PERCH_CORE: /Users/rothenborg/Sites/rir.dk/public/admin/core
PERCH_RESFILEPATH: /Users/rothenborg/Sites/rir.dk/public/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/rothenborg/Sites/rir.dk/public/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.18
Zend: 2.5.0
OS: Darwin
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.38
MySQL server: 5.5.38
Free disk space: 27.27 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, mysql, mysqli, session, PDO, pdo_sqlite, standard, posix, Reflection, Phar, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi-fcgi, imap, gettext, mcrypt, yaz, pgsql, pdo_pgsql, pdo_mysql, xdebug
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PHP_FCGI_CHILDREN: 4
PWD: /Applications/MAMP/fcgi-bin
PHP_FCGI_MAX_REQUESTS: 200
__CF_USER_TEXT_ENCODING: 0x46:0:0
ORIG_SCRIPT_NAME: /fcgi-bin/php5.5.18.fcgi
ORIG_PATH_TRANSLATED: /Users/rothenborg/Sites/rir.dk/public/admin/core/settings/diagnostics/index.php
ORIG_PATH_INFO: /admin/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /Applications/MAMP/fcgi-bin/php5.5.18.fcgi
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REDIRECT_URL: /admin/core/settings/diagnostics/index.php
REDIRECT_QUERY_STRING: extended
REMOTE_PORT: 51895
SCRIPT_FILENAME: /Users/rothenborg/Sites/rir.dk/public/admin/core/settings/diagnostics/index.php
SERVER_ADMIN: you@example.com
DOCUMENT_ROOT: /Users/rothenborg/Sites/rir.dk/public
REMOTE_ADDR: 127.0.0.1
SERVER_PORT: 8080
SERVER_ADDR: 127.0.0.1
SERVER_NAME: rir.localhost
SERVER_SOFTWARE: Apache
PATH: /usr/bin:/bin:/usr/sbin:/sbin
HTTP_COOKIE: cmsa=1; _ga=GA1.2.828896444.1471285041; PHPSESSID=bc515be92057b5379126b958aea71b05
HTTP_ACCEPT_LANGUAGE: da-DK,da;q=0.8,en-US;q=0.6,en;q=0.4,sv;q=0.2
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_REFERER: https://rir.localhost:8080/admin/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: keep-alive
HTTP_HOST: rir.localhost:8080
REDIRECT_STATUS: 200
REDIRECT_HANDLER: php-fastcgi
FCGI_ROLE: RESPONDER
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1471366114.97
REQUEST_TIME: 1471366114
argc: 1
Rachel Andrew

Rachel Andrew 394 points
Perch Support

When you updated Perch did you also update the MarkItUp Editor? If not, or if you don't remember can you use the latest one from your download.

Hi agian,

Just did it – didn change anything :)

Rachel Andrew

Rachel Andrew 394 points
Perch Support

and have you resaved the region etc. after having done so? I'm pretty sure that issue is due to an old markitup - you'll need to make sure you browser is not caching the JavaScript as well.

Might be me there is doing something wrong – how do i check if its the correct version of the MarkItUp Editor?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You would download the version from 2.8.31 and copy that into your installation.