first commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
|
||||
<f:if condition="{indexFieldsInfoForCore.noError}">
|
||||
|
||||
<f:if condition="{indexFieldsInfoForCore.coreMetrics.numberOfDocuments}">
|
||||
<f:then>
|
||||
<div class="row core-metrics">
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfDocuments}</p>
|
||||
<h3>Documents</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfDeletedDocuments}</p>
|
||||
|
||||
<h3>Deleted Documents</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfFields}</p>
|
||||
<h3>Fields</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table table-condensed table-hover table-striped">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<th>Field Name</th>
|
||||
<th>Index Field Type</th>
|
||||
<th># Documents</th>
|
||||
<th>Distinct Terms</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{indexFieldsInfoForCore.fields}" as="field">
|
||||
<tr>
|
||||
<td>{field.name}</td>
|
||||
<td>{field.type}</td>
|
||||
<td>{field.docs}</td>
|
||||
<td>{field.terms}</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</tbody>
|
||||
</table>
|
||||
</f:then>
|
||||
|
||||
<f:else>
|
||||
<div class="well">
|
||||
<p>Your index in "{indexFieldsInfoForCore.corePath}" is empty.</p>
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
@@ -0,0 +1,51 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers\Backend}
|
||||
|
||||
<f:if condition="{document}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
<a href="#panel-group4document-id-{document.fields._version_}" data-toggle="collapse">Title: {document.fields.title}</a>
|
||||
<a href="#panel-group4document-id-{document.fields._version_}" title="Collapse table" class="pull-right" data-toggle="collapse">
|
||||
<core:icon identifier="actions-view-list-expand" size="small"/><f:comment><!-- @todo: make Icon toggable between actions-view-list-collapse/actions-view-list-expand --></f:comment>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="panel-group4document-id-{document.fields._version_}" class="panel-collapse collapse {f:if(condition: '{documentsCount} < 2', then: 'in', else: '')}">
|
||||
<div class="panel-body">
|
||||
<table class="table table-condensed table-hover table-striped">
|
||||
<thead><tr><th>Fieldname</th><th>Value</th></tr></thead>
|
||||
<tbody id="document-tbody-pid-{document.fields.uid}">
|
||||
<f:render section="Rows" arguments="{tableRows: document.fields, document: document}"/>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:section name="Rows">
|
||||
<f:for each="{tableRows}" key="tableRowFiledName" as="tableRowValue" >
|
||||
<tr>
|
||||
<th scope="row">{tableRowFiledName}</th>
|
||||
<solr:isString value="{tableRowValue}">
|
||||
<f:then>
|
||||
<td>{tableRowValue}</td>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<td>
|
||||
<f:render section="SubTable" arguments="{tableRows: tableRowValue}"/>
|
||||
</td>
|
||||
</f:else>
|
||||
</solr:isString>
|
||||
</tr>
|
||||
</f:for>
|
||||
</f:section>
|
||||
|
||||
<f:section name="SubTable">
|
||||
<table class="table table-condensed table-hover table-striped table-bordered">
|
||||
<thead><tr><th>Fieldname</th><th>Value</th></tr></thead>
|
||||
<tbody>
|
||||
<f:render section="Rows" arguments="{tableRows: tableRows}"/>
|
||||
</tbody>
|
||||
</table>
|
||||
</f:section>
|
1
Resources/Private/Partials/Backend/FlashMessages.html
Normal file
1
Resources/Private/Partials/Backend/FlashMessages.html
Normal file
@@ -0,0 +1 @@
|
||||
<f:flashMessages />
|
34
Resources/Private/Partials/Backend/NoSiteAvailable.html
Normal file
34
Resources/Private/Partials/Backend/NoSiteAvailable.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<f:if condition="{showSelectOtherPage}">
|
||||
<f:then>
|
||||
<f:be.infobox title="No site could be found." state="3">
|
||||
<p>Please choose other page in the page tree, which has solr configured.</p>
|
||||
</f:be.infobox>
|
||||
</f:then>
|
||||
|
||||
<f:else>
|
||||
<p>When all of these steps are done check this module again.</p>
|
||||
|
||||
<f:be.infobox title="There is no site configured for your solr extension!" state="3">
|
||||
<p>Please check the following:</p>
|
||||
<p>If you want to use solr with the TYPO3 site configuration:</p>
|
||||
|
||||
<ul>
|
||||
<li>Your site has a page, marked as root page.</li>
|
||||
<li>Configure EXT:meilisearch with the TYPO3 site module.</li>
|
||||
<li>Check the reports module if any solr error is shown.</li>
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
<p><strong>OR</strong></p>
|
||||
<hr />
|
||||
<p>If you want to use solr with the legacy configuration (domain record and typoscript of EXTCONF setup):</p>
|
||||
<ul>
|
||||
<li>Your site has a domain configured, please create a domain record on the root page, or configure it in "TYPO3_CONF_VARS|EXTCONF|solr|sites|###rootPageId###|domains"</li>
|
||||
<li>Your site has a page, marked as root page.</li>
|
||||
<li>Your page has included the solr typoscript configuration.</li>
|
||||
<li>You've initialized the solr connections in the backend with the menu item "Initialize solr connections"</li>
|
||||
<li>Afterwards please check if the reports module is showing any errors.</li>
|
||||
</ul>
|
||||
</f:be.infobox>
|
||||
</f:else>
|
||||
</f:if>
|
Reference in New Issue
Block a user