arrizalamin / october-portfolio Goto Github PK
View Code? Open in Web Editor NEWOctober CMS plugin to show off your past projects.
Home Page: https://octobercms.com/plugin/arrizalamin-portfolio
October CMS plugin to show off your past projects.
Home Page: https://octobercms.com/plugin/arrizalamin-portfolio
Is there a way to pass on meta tags for each portfolio item?
Is it possible to change the title of the category?
I tried this but won't work:
function onEnd()
{
if ($this['category']) {
$this->page->title = $this['category']->item->title;
}
}
Is it possible to ignore the first image (being used as a featured header image) when displaying the rest of the images in a gallery?
It is possible to add an Summary field?
I want to set item.title as <title></title>. I used that code, but it didn't work.
function onEnd()
{
if ($this->item)
$this->page->title = $this->item->title;
}
That doesn't work. Please help.
Plugin not fully working! If you install it via the backend, there is no "item" component in the list (only Portfolio item):
I moved the files from the repository in folder "arrizalamin/portfolio", and in the list components appeared "Item", but it does not work, because an error occurs:
Please help me! Wonderful plugin, but I can not use it
How to show multiples image for the same item or how to show a specific image(ex: the third image)
The regex in the validator rule doesn't work with hyphens.
My fix
public $rules = [
'name' => 'required|unique:arrizalamin_portfolio_tags|regex:/^[a-z0-9-_]+$/'
];
Thanks
It is possible to have to different html for the component? I mean, one html for each category.
It is possible to overwrite the defautl html?
When I use the code below as partial of the component, the plugin works correctly. However, when I try to generate the Thumbnail from the image, using {{ item.images[0].thumb(300, { extension: 'png' }) }}
instead of {{ item.images[0].path }}
, layout of the page is not loaded, as shown in the images below. You have no idea why this happens?
{% for item in __SELF__.portfolio %}
<div class="project-post {{ item.category.name|lower|replace({' ': '-'}) }}">
<img src="{{ item.images[0].path }}" alt="{{ item.images[0].title }}">
<div class="hover-box">
<a class="link" href="{{ 'project'|page({project_id: item.id, slug: item.title|slug }) }}">Visualizar</a>
</div>
</div>
{% endfor %}
Using the path attr, the plugins works perfect:
Using the thumbnail, only the code of page is loaded, with no layout:
hello, i want show related portfolio in single portfolio and limit 3 posts. i try like this;
if singletitle (from main for loop) == relatedtitle (second loop)
==> show div..
but if i change per page count (example 3) nothing show
As I can make a loop to display all existing tags?
In the section about /plugins/arrizalamin/portfolio/components/item/default.htm
The text:
<a href="\portfolio\tags\{{ tag.name}}">
Should be replaced with:
<a href="{{ tag.pageUrl }}">
(The actual template is correct, just the documentation isn't)
I need to get all category names and slugs to show on the Portfolio page, to use in the mixitup filter header.
I've come so far to print out all the categories with some extra code in the Code tab, as follows:
use ArrizalAmin\Portfolio\Models\Category;
function onStart()
{
$this["av_cat"] = (array)Category::lists('name', 'slug');
}
But now I have a problem, because the page will be multilingual... How to account for the Translate plugin with my solution, or is there another? All other Portfolio components work normally with the Translate.
Thanks for the help.
I can replace a tag without any problem, but I don't seem to be able to remove all tags. After saving it simply replaces it with the last tag that was removed.
I'm new to October, am I doing something wrong or is this a bug?
Thanks for this beautiful plugin. I noticed the pagination feature doesn't work as it does nothing when you click on the pagination links. Any pointers on how to fix this?
Thanks.
Hi,
I would like to print out items filtered with multiple tags:
/portfolio/tag1,tag2/1?
How to achieve that?
Regard,
Darjan
Url Slug is showing default
Great plugin first of all!
It would be great though if I could position the items in the order I want, or at least specify an "orderBy" parameter in the component settings. Right now it's sorting in the order the items are in the database.
I like the simplicity of your plugin, however I think its missing one pretty essential feature: setting a custom order of the added portfolio items. I. e., the "Brands" plugin (look for it on the OctoberCMS plugin search) lets you set an order for the portfolio items, so you can rearrange them. As far as I could see, your plugin always shows the items in the order they have been added. Or did I just miss the option for custom order (I don't mean sorting the items descending instead of ascending)?
This is a fantastic plugin
But i was wondering I have a htm file in /partials/portfolio/default.htm that has the default look of the portfolio plugin on my homepage. But I want to have the same plugin show up in a different page, but have a different layout, how can i achieve this (i.e. have a file called /partials/portfolio/anotherlayout.htm)
Is this possible and how can this be achieved?
Hi, is there a way to set up a new partial? So I can use a partial instead of a component?
I thought it might be something like this:
{% set items = items.portfolio %}
<div class="item ">
{% for item in items %}
{% if item.images|length > 0 %}
{% set image = item.images.first %}
<a href="{{ item.pageUrl }}">
<img src="{{ image.path }}" alt="{{ image.title }}">
<h3>{{ item.title }}</h3></a>
{% endif %} {% endfor %} </div>
But that does not work.
Do you have any suggestions, please?
Thank you.
hi, thanks in advance.
Just i have a only suggestions:
And thanks so much for your work!!
It is not possible to rename/delete a category.
In controllers/Categories.php
add the code:
use Flash;
use ArrizalAmin\Portfolio\Models\Category;
...........
...........
public function index_onDelete()
{
if (($checkedIds = post('checked'))) {
foreach ($checkedIds as $itemId) {
if ((!$table = Category::find($itemId)))
continue;
$table->delete();
}
Flash::success('Successfully deleted those tables.');
}else{
Flash::error('Something just went wrong! :(');
}
return $this->listRefresh();
}
In controllers/categories/_list_toolbar.htm
add the code:
<button
class="btn btn-default oc-icon-trash-o"
disabled="disabled"
onclick="$(this).data('request-data', {
checked: $('.control-list').listWidget('getChecked')
})"
data-request="onDelete"
data-request-confirm="<?= e(trans('backend::lang.relation.delete_confirm')) ?>"
data-trigger-action="enable"
data-trigger=".control-list input[type=checkbox]"
data-trigger-condition="checked"
data-request-success="$el.prop('disabled', false)"
data-stripe-load-indicator>
<?= e(trans('backend::lang.form.delete')) ?>
</button>
In controllers/categories/config_list.yaml
change showCheckboxes in true:
showCheckboxes: true
For Items similarly.
Hello,
I would like that the slug field to be translatable for SEO reasons.
Bests regards
Is it possible to connect this Plugin to the SiteSearch Plugin?
In the Documentation is shown that I should edit this code. But what should I add? And where do I place it?
public function boot()
{
Event::listen('offline.sitesearch.query', function ($query) {
// Search your plugin's contents
$documents = YourCustomDocumentModel::where('title', 'like', "%${query}%")
->orWhere('content', 'like', "%${query}%")
->get();
// Now build a results array
$results = [];
foreach ($documents as $document) {
// Make this result more relevant if the query
// is found in the result's title
$relevance = stripos($document->title, $query) !== false ? 2 : 1;
$results[] = [
'title' => $document->title,
'text' => $document->content,
'url' => '/documents/' . $document->slug,
'relevance' => $relevance, // higher relevance results in a higher
// position in the results listing
];
}
return [
'provider' => 'Document', // The badge to display for this result
'results' => $results,
];
});
}
Hello,
Just installed october CMS and chose SQLite as database system.
When I try to install Portfolio module in that install of october, I get the following error in a popup :
Update failed
"SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter > table "arrizalamin_portfolio_items" add column "slug" varchar not null)" on line 662 of /vendor/laravel/framework/src/Illuminate/Database/Connection.php
Tried to install it in a MySQL install of october CMS, no problems at all, so it seems to be related with SQLite.
Alex
I've added the plugin to my project account via the OctoberCMS website. When I check the backend for system updates, the plugin is listed as a 'New Plugin' in the 'Software Update' modal. When I 'Update Software' the plugin downloads and the backend notifies me that the update was successful but it isn't listed as one of the installed plugins. When I check for system updates again, the plugin is still listed as a 'New Plugin' that needs installing.
The plugin has downloaded, I can see it in the plugins directory but it seems that the backend doesn't recognise it.
Is it possible to make the page Title the active item?
Something like this?
function onEnd()
{
if ($this['item'])
$this->page->title = $this['item']->title;
}
On items page sort ordering not working. Always ordered by ID (asc). Help me to understand sorting code.
Update failed when using a SQLite based OctoberCMS:
"SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "arrizalamin_portfolio_items" add column "slug" varchar not null)" on line 664 of C:\Users\maxva\PhpstormProjects\OntwerpEnAdviesbureauVanHout\vendor\laravel\framework\src\Illuminate\Database\Connection.php
Great plugin!
Is it possible to list by category like how the tags work?
So instead of the component with a category selected, is is possible to have that blank and the url /portfolio/category/catname and fetch all the items that are marked with that category?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.