Skip to content

Commit

Permalink
[CLEANUP] Remove leftovers of fe export functionality
Browse files Browse the repository at this point in the history
Related: #1109
  • Loading branch information
mschwemer committed Oct 9, 2024
1 parent fdee43f commit f48fca3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 143 deletions.
28 changes: 0 additions & 28 deletions Configuration/FlexForms/FlexformPi2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,6 @@
<itemsProcFunc>In2code\Powermail\Tca\FieldSelectorUserFunc->getFieldSelection</itemsProcFunc>
</config>
</settings.flexform.list.fields>
<settings.flexform.list.export>
<label>LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:flexform_pi2.list.export</label>
<config>
<type>select</type>
<renderType>selectMultipleSideBySide</renderType>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:flexform_pi2.list.export.0</numIndex>
<numIndex index="1">xls</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:flexform_pi2.list.export.1</numIndex>
<numIndex index="1">csv</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:flexform_pi2.list.export.2</numIndex>
<numIndex index="1">rss</numIndex>
</numIndex>
</items>
<maxitems>10</maxitems>
<size>4</size>
<autoSizeMax>10</autoSizeMax>
<minitems>0</minitems>
<selectedListStyle>width:350px</selectedListStyle>
<itemListStyle>width:350px</itemListStyle>
<allowNonIdValues>1</allowNonIdValues>
</config>
</settings.flexform.list.export>
<settings.flexform.list.delta>
<label>LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:flexform_pi2.list.delta</label>
<config>
Expand Down
76 changes: 0 additions & 76 deletions Configuration/TypoScript/Powermail_Frontend/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ plugin.tx_powermail {
}
}

rss {
title = Powermail RSS Feed
link = http://www.in2code.de
description = Powermail_Frontend RSS Feed
language = en
copyright = in2code.de
updatePeriod = hourly
updateFrequency = 1
}

misc {
file {
folder = uploads/tx_powermail/
Expand Down Expand Up @@ -57,72 +47,6 @@ plugin.tx_powermail {
}
}


############################
# Export section
############################

powermail_frontend_xls = PAGE
powermail_frontend_xls {
typeNum = 31311

config {
disableAllHeaderCode = 1
disablePrefixComment = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders {
10.header = Content-type:application/xls
20.header = Content-Disposition: inline; filename=export.xls
30.header = Cache-control:
40.header = Pragma:
}
}

10 < styles.content.get
}

powermail_frontend_csv < powermail_frontend_xls
powermail_frontend_csv {
typeNum = 31312
config {
additionalHeaders {
10.header = Content-type:text/x-csv
20.header = Content-Disposition: inline; filename=export.csv
}
}
}


############################
# RSS section
############################

powermail_frontend_rss = PAGE
powermail_frontend_rss {
typeNum = 31319

config {
disableAllHeaderCode = 1
disablePrefixComment = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders.10.header = Content-type:application/xml
}

10 < styles.content.get
}

[traverse(getTSFE(), 'type') == 31311 || traverse(getTSFE(), 'type') == 31312 || traverse(getTSFE(), 'type') == 31319]
# overwrite the default content element layout, because we don't want the wrapper div in our export files
tt_content.list {
layoutRootPaths {
99 = EXT:powermail/Resources/Private/Layouts/ContentElements/Export/
}
}
[end]


############################
# JavaScript and CSS section
############################
Expand Down
9 changes: 2 additions & 7 deletions Documentation/ForAdministrators/PowermailFrontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
## Introduction

powermail_frontend gives you the possibility to show the stored mails
again in the frontend. With this additional plugin (Pi2), it's possible to create
a small guestbook or database listing. In addition some export methods
are included (XLS, CSV, RSS) or logged in FE\_Users can change the
again in the frontend. With these additional plugins (Pi2, Pi3, Pi4), it's possible to create
a small guestbook or database listing. In addition logged in FE\_Users can change the
values again.

![frontend_pi2](../Images/frontend_pi2.png)
Expand All @@ -20,7 +19,6 @@ values again.
| Choose a form | Choose an existing form | Select a Form and click save | Main Settings |
| Select a page with mails | Select a page with mails (optionsl) | Only mails which are stored in the given page are shown in the frontend (optional setting). | Main Settings |
| Choose Fields | Choose Fields (Empty: All Fields) | Let the selection empty if you want to see all form values. | Listview |
| Export Formats | Add links to different export methods by adding some. | XLS, CSV or RSS feed is possible in powermail_frontend. | Listview |
| Show entries... | If you want to show only mails within a timeperiod, add some seconds. | If you want to show the mails of the last 24h add “86400”. Let this field empty to disable this function. | Listview |
| Show max. X entries... | Limit for mail output. | Add a number if you want to show only X entries. | Listview |
| Page with Plugin for list view... | Select the page with the list plugin. | This is needed if the plugin shows the edit or single view and it should link you back to the list view. Let this field empty means list view is on current page. | Listview |
Expand All @@ -29,7 +27,4 @@ values again.
| Page with Plugin for detail view | Select the page with the detail plugin. | This is needed if the plugin shows the list view and it should link you to the detail view. Let this field empty means detail view is on current page. | Detailview |
| Add searchfield | Add some search fields above the list. | Select a single field or choose `[Fulltext Search]` for an overall search | Searchsettings |
| Add ABC filter | Add ABC filter list in frontend. | Select a field with a leading letter to filter for it. Firstname means: When a user clicks on A, all mails with a beginning A in the firstname are shown (Alex, Andreas, Agnes, etc...) | Searchsettings |
| Choose Fields to edit | What fields should be editable? | Let the selector empty if you want to edit all fields. | Editview |
| Choose one or more Frontend-Users with permissions to change | Choose a frontend user who is able to edit a mail. | Value can be one or more static FE\_Users or the Creator of a mail `[Owner]`. You can select a group in addition (see next row). | Editview |
| Choose one or more Frontend-Groups with permissions to change | Choose frontend users of a group which are able to edit a mail. | Value can be one or more static FE\_User Groups or the Creator Group of a mail [Owner]. You can select some single FE_Users in addition (see row before). | Editview |
| Page with Plugin for edit view | Select the page with the edit plugin. | This is needed if the plugin shows the list view and it should link you to the edit view. Let this field empty means edit view is on current page. | Editview |
3 changes: 0 additions & 3 deletions Documentation/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ Example Multistep Form with clientside validation

Listing of stored mails with the possibility to see a Detail view or to re-edit the entries for a defined Frontend Usergroup
Define your ABC- and Searchterm Filter
Define the export possibilities (RSS, CSV, XLS)
XLS export is only possible when the extension *jambagecom/base-excel* is installed


### Backend: Mail Listing

Expand Down
27 changes: 0 additions & 27 deletions Resources/Private/Language/locallang_db.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -519,21 +519,6 @@
<trans-unit id="flexform_pi2.main" resname="flexform_pi2.main">
<source>Main Settings</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.switchableControllerActions" resname="flexform_pi2.main.switchableControllerActions">
<source>Choose your view</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.switchableControllerActions.0" resname="flexform_pi2.main.switchableControllerActions.0">
<source>List or Detail View</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.switchableControllerActions.1" resname="flexform_pi2.main.switchableControllerActions.1">
<source>Detail View</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.switchableControllerActions.2" resname="flexform_pi2.main.switchableControllerActions.2">
<source>Edit View</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.switchableControllerActions.3" resname="flexform_pi2.main.switchableControllerActions.3">
<source>All Views</source>
</trans-unit>
<trans-unit id="flexform_pi2.main.form" resname="flexform_pi2.main.form">
<source>Choose a form</source>
</trans-unit>
Expand Down Expand Up @@ -561,18 +546,6 @@
<trans-unit id="flexform_pi2.list.showownonly.0" resname="flexform_pi2.list.showownonly.0">
<source>Show only entries from logged in Frontend-User</source>
</trans-unit>
<trans-unit id="flexform_pi2.list.export" resname="flexform_pi2.list.export">
<source>Export Formats</source>
</trans-unit>
<trans-unit id="flexform_pi2.list.export.0" resname="flexform_pi2.list.export.0">
<source>XLS Export</source>
</trans-unit>
<trans-unit id="flexform_pi2.list.export.1" resname="flexform_pi2.list.export.1">
<source>CSV Export</source>
</trans-unit>
<trans-unit id="flexform_pi2.list.export.2" resname="flexform_pi2.list.export.2">
<source>RSS Feed</source>
</trans-unit>
<trans-unit id="flexform_pi2.single" resname="flexform_pi2.single">
<source>Detailview</source>
</trans-unit>
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Language/locallang_mod.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
<source>Powerful and easy mailform extension optimized for editors.</source>
</trans-unit>
<trans-unit id="powermail_pi2.title">
<source>Powermail Frontend (List, Detail, Export)</source>
<source>Powermail Frontend (List, Detail)</source>
</trans-unit>
<trans-unit id="powermail_pi2.description">
<source>Displays powermail mails in the frontend with export possibilities</source>
<source>Displays powermail mails in the frontend</source>
</trans-unit>
<trans-unit id="powermail_pi3.title">
<source>Powermail Frontend (Edit, Update, Delete)</source>
Expand Down

0 comments on commit f48fca3

Please sign in to comment.