concrete5.7 Pagination
https://github.com/hissy/concrete5-5.7.0/commit/9d14c9a6edf79736efa1689e5e2a0d6e459fc946
## -- concrete5 urls start -- | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# Change RewriteBase path if this concrete5 is installed on subdirectory / concrete5 がサブディレクトリにインストールされていたら、RewriteBase の変更が必要です。 | |
# IP address restriction starts here / IP アドレス制限、アクセス許可するのIPの設定 | |
RewriteCond %{REMOTE_ADDR} !123\.4\.56\.789 | |
RewriteCond %{REMOTE_ADDR} !123\.123\.123\.123 | |
# Add more lines is you have more IP / もっとIPがある場合は、行を追加してください |
<?php | |
/** | |
* Always trust incoming request. | |
* | |
* application/config/concrete.php | |
* | |
* For more detail, see: http://symfony.com/doc/current/cookbook/request/load_balancer_reverse_proxy.html | |
*/ |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
<?php | |
// Upload this file to application/src/Application/Service/Dashboard/PermissionSitemap.php | |
namespace Application\Src\Application\Service\Dashboard; | |
use Page; | |
class PermissionSitemap extends \Concrete\Core\Application\Service\Dashboard\Sitemap | |
{ | |
public function getNode($cItem, $includeChildren = true, $onGetNode = null) |
server { | |
# (略) | |
location ~* /wp-login\.php|/wp-admin/((?!admin-ajax\.php).)*$ { | |
index index.php index.html index.htm; | |
# 許可するIPアドレスを記述 | |
allow 192.168.0.1; | |
deny all; | |
# Basic認証のメッセージ |
<?php | |
namespace Application\Job; | |
use Job as AbstractJob; | |
use Concrete\Core\Workflow\Progress\PageProgress; | |
use Concrete\Core\Workflow\EmptyWorkflow; | |
class ClearEmptyWorkflowProgress extends AbstractJob | |
{ |
// application/bootstrap/app.php | |
Route::register('/ccm/request', function() { | |
header("Pragma: no-cache"); | |
header("Pragma: no-cache"); | |
echo '<dl>'; | |
$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication(); | |
?><dt>Application environment:</dt><dd><?php echo ($app->environment()) ? $app->environment() : 'default'; ?></dd><?php | |
$request = \Concrete\Core\Http\Request::getInstance(); | |
?><dt>Client IP:</dt><dd><?php echo $request->getClientIp(); ?></dd><?php | |
?><dt>Host:</dt><dd><?php echo $request->getHost(); ?></dd><?php |
<?php | |
// application/bootstrap/app.php | |
$request = Request::getInstance(); | |
if ($request->headers->has('HTTP_X_SAKURA_FORWARDED_FOR')) { | |
$request->server->set('HTTPS', 'on'); | |
} |
<?php | |
//ページタイプの「出力」で'Main'エリアにコンポーザーで扱うcontentブロックを入れてる場合 | |
$pageType = \PageType::getByHandle('ページタイプハンドル'); | |
$template = $pageType->getPageTypeDefaultPageTemplateObject(); | |
$d = $pageType->createDraft($template); | |
$d->setPageDraftTargetParentPageID(親ページID); | |
$pageType->savePageTypeComposerForm($d); | |
$pageType->publish($d); | |
//$dには追加したページオブジェクトが入ってくる |