Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 18.191.26.149
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
views /
help /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
about.html
4.75
KB
-rw-r--r--
advanced-settings.html
2.56
KB
-rw-r--r--
advanced-style-settings.html
1.56
KB
-rw-r--r--
aggregation.html
49
B
-rw-r--r--
alter-exposed-filter.html
1.56
KB
-rw-r--r--
analyze-theme.html
2.48
KB
-rw-r--r--
api-default-views.html
7.15
KB
-rw-r--r--
api-example.html
6.58
KB
-rw-r--r--
api-forms.html
2.95
KB
-rw-r--r--
api-handler-area.html
1.59
KB
-rw-r--r--
api-tables.html
13.43
KB
-rw-r--r--
api-upgrading.html
7.98
KB
-rw-r--r--
api.html
3.34
KB
-rw-r--r--
argument.html
9.92
KB
-rw-r--r--
basic-settings.html
2.78
KB
-rw-r--r--
demo-video.html
338
B
-rw-r--r--
display-attachment.html
398
B
-rw-r--r--
display-block.html
1.36
KB
-rw-r--r--
display-default.html
653
B
-rw-r--r--
display-feed.html
59
B
-rw-r--r--
display-page.html
933
B
-rw-r--r--
display.html
1.85
KB
-rw-r--r--
drush.html
526
B
-rw-r--r--
embed.html
1.15
KB
-rw-r--r--
empty-text.html
245
B
-rw-r--r--
example-author-block.html
9.81
KB
-rw-r--r--
example-filter-by-current-user...
3.08
KB
-rw-r--r--
example-recent-stories.html
4.92
KB
-rw-r--r--
example-slideshow-thumb-pager....
4.06
KB
-rw-r--r--
example-user-feed.html
5.33
KB
-rw-r--r--
example-users-by-role.html
5.85
KB
-rw-r--r--
exposed-form.html
1.38
KB
-rw-r--r--
field.html
2.84
KB
-rw-r--r--
filter.html
4.09
KB
-rw-r--r--
get-total-rows.html
772
B
-rw-r--r--
getting-started.html
2.82
KB
-rw-r--r--
group-by.html
1.97
KB
-rw-r--r--
header.html
231
B
-rw-r--r--
menu.html
2.06
KB
-rw-r--r--
misc-notes.html
488
B
-rw-r--r--
new.html
10.08
KB
-rw-r--r--
other-help.html
544
B
-rw-r--r--
overrides.html
1.22
KB
-rw-r--r--
path.html
1.18
KB
-rw-r--r--
performance-views-vs-displays....
1.14
KB
-rw-r--r--
performance.html
144
B
-rw-r--r--
relationship-representative.ht...
1.51
KB
-rw-r--r--
relationship.html
2.99
KB
-rw-r--r--
reports.html
184
B
-rw-r--r--
select-multple-nids-contextual...
1.64
KB
-rw-r--r--
semantic-views.html
1.13
KB
-rw-r--r--
sort.html
2.03
KB
-rw-r--r--
style-comment-rss.html
107
B
-rw-r--r--
style-fields.html
1.4
KB
-rw-r--r--
style-grid.html
1.31
KB
-rw-r--r--
style-grouping.html
1.08
KB
-rw-r--r--
style-jump.html
3.46
KB
-rw-r--r--
style-list.html
727
B
-rw-r--r--
style-node-rss.html
111
B
-rw-r--r--
style-node.html
1.33
KB
-rw-r--r--
style-row.html
1.48
KB
-rw-r--r--
style-rss.html
591
B
-rw-r--r--
style-settings.html
74
B
-rw-r--r--
style-summary-unformatted.html
789
B
-rw-r--r--
style-summary.html
697
B
-rw-r--r--
style-table.html
1.57
KB
-rw-r--r--
style-unformatted.html
115
B
-rw-r--r--
style.html
1.74
KB
-rw-r--r--
taxonomy-page-override.html
2.52
KB
-rw-r--r--
theme-css.html
3.02
KB
-rw-r--r--
top-pager.html
521
B
-rw-r--r--
ui-crashes.html
1.23
KB
-rw-r--r--
updating-view3.html
180
B
-rw-r--r--
updating.html
672
B
-rw-r--r--
upgrading.html
401
B
-rw-r--r--
using-theme.html
4.58
KB
-rw-r--r--
view-add.html
1.7
KB
-rw-r--r--
view-settings.html
664
B
-rw-r--r--
view-type.html
1.78
KB
-rw-r--r--
views.help.ini
5.85
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : example-author-block.html
<p>In this example you will create a context-sensitive block that shows the titles of recent blog entries by an author when viewing one of their posts. This will demonstrate using Views <em>arguments</em> to dynamically filter a view's contents at display time.</p> <p>Before working through this example, enable the <strong>Blog</strong> module and populate some entries from a few different users.</p> <h3>Creating the View</h3> <p>The first step is creating a view for our recent blog entries block. Because the block will show the titles of blog entries, this view is considered a "Node" type. Go to <a target="_blank" href="base_url:admin/structure/views/add">add new view</a>, enter the following properties, and click <strong>Next</strong>:</p> <dl> <dt>View name</dt> <dd>recent_blog_entries</dd> <dt>View description</dt> <dd>List of recent blog entries for a given author.</dd> <dt>View tag</dt> <dd>blog</dd> <dt>View type</dt> <dd>Node</dd> </dl> <h3>Generating a list of blog entries</h3> <p>It will be much easier to see the view progress if we can see it doing something. In this section, we will create a basic view displaying blog entry titles.</p> <ol> <li>In the third column, locate the <strong>Fields</strong> area. Generally speaking, fields are the pieces of information that you want to display in the view (in this case, node title). Click the <strong>+</strong> icon to add a field.</li> <li>Scroll down to <strong>Defaults: Add fields</strong>, below the settings table. A large selection of fields will be available.</li> <li>In the <strong>Groups</strong> drop-down menu, select <em>Node</em>. This will limit the list to only the default fields exposed by Node module.</li> <li>Scroll down the list, select the <em>Node: Title</em> field, and click <strong>Add</strong>.</li> <li>You will now be presented with settings for the <em>Node: Title</em> field. Delete the label from the <strong>Label</strong> field, so that each individual node title is not prefixed with the word "Title." Additionally, check the <em>Link this field to its node</em> box so that visitors who see an interesting title can click directly on it to read the blog entry to which it belongs.</li> <li>When finished, click <strong>Update</strong>. If you scroll down to the <strong>Live Preview</strong> section, you should now see a list of several node titles; however both blog entries and other node types will be in the list. Let's fix that.</li> <li>In the fourth column, locate the <strong>Filters</strong> area. Filters limit the results displayed in the view, and we can use this to our advantage here by showing node titles only from blog entries and not every type of node. Click the <strong>+</strong> icon to add a filter.</li> <li>As before, scroll down to the <strong>Defaults: Add filters</strong> section, select <em>Node</em> from the <strong>Groups</strong> select box to limit the list of options to only those exposed by Node module.</li> <li>Scroll down and select the <em>Node: Type</em> field and click <strong>Add</strong>. In the settings page that appears, leave <strong>Operator</strong> as <em>Is one of</em> and select <em>Blog entry</em> under <strong>Node type</strong>. Click <strong>Update</strong> when finished.</li> <li>Now, by scrolling down to <strong>Live preview</strong>, you'll see that the list only shows blog entries.</li> </ol> <h3>Adding context with arguments</h3> <p>While filters are very useful for limiting the results of a view when the condition is always consistent (for example, a view of blog entry nodes should <em>always</em> be filtered by the blog entry type), something filters can't do is smart decision-making based on the page context. In our case, we want the view to display a different list of blog entries when looking at a post by user 'admin' than we do when looking at a post by user 'member', and filters won't be able to help.</p> <p>Luckily, there's another way to filter a view's content: <em>arguments</em>. Through arguments, Views are able to obtain additional context (typically via dynamic URLs with IDs in them) and can take this context into consideration when displaying the view.</p> <p>Let's walk through adding and configuring an argument to our view so that we can change its contents based on post author.</p> <ol> <li>In the third column, locate the <strong>Arguments</strong> area. Click the <strong>+</strong> icon to add an argument.</li> <li>Because we are basing the view around content <em>authors</em>, this time under <strong>Groups</strong> select <em>User</em>. Check <em>User: Uid</em> and click <strong>Add</strong>.</li> <li>The <strong>Defaults: Configure Argument User: Uid</strong> settings page has a lot going on, but only a few things that need our attention.</li> <li>The <strong>Title</strong> field here, unlike the Title field under <em>Basic Settings</em>, can be based upon the context that the view is being displayed in. Change the title to 'Recent entries by %1.' %1 will later be expanded to the user's name (based on the User: Uid argument) when the view is displayed.</li> <li>Under <strong>Action to take if argument is not present</strong>, there are a variety of options, ranging from displaying a 404 or a 403 page to simply displaying all values in the view. In our case, if an argument isn't specified (which it won't be, since this view will be displayed in a sidebar block, not as a page with its own URL), we want to give it a default one to act on. Select <em>Provide default argument</em>.</li> <li>Assuming JavaScript is enabled in your browser, you should now get another selection for <strong>Default argument type</strong>. Select <em>User ID from URL</em>, which will then provide a new option, <em>Also look for a node and use the node author</em>. Select it. This will cause Views to first see if it can figure out a user ID from the current URL (for example, user/1). If it can't, it will instead check to see if the current page is a node page (such as node/42) and, if so, take the user ID from the node's author field instead.</li> <li><strong>Validator options</strong> provide a useful way to control what kind of arguments your view will accept. Select <em>User</em> as the <strong>Validator</strong>. By default, changing this setting will check the incoming argument and ensure it's a valid user ID; if not, the view will be hidden from the page.</li> <li>Once you have changed the argument's title, default argument, and validator options, click <strong>Update</strong> to save your changes.</li> <li>You'll notice that now the Live preview no longer shows anything. Did we just break the view? Fortunately, no. It's merely abiding by our wishes to hide itself if there is no valid user ID given to it. Try entering a '1' in the <strong>Arguments</strong> box and clicking <strong>Preview</strong>. You should now see a list of only user 1's blog entries.</li> </ol> <h3>Creating the block</h3> <p>So the live preview is now showing basically what we want. There's just one problem: we have no way to stick what we've done so far into a sidebar block! Let's fix that by adding a new <strong>Display</strong>.</p> <ol> <li>In the first column, under <strong>Defaults</strong>, there is a select box containing entries such as <em>Page</em>, <em>Feed</em>, and, yes, <em>Block</em>! Select <em>Block</em> and click <strong>Add display</strong>.</li> <li>There's not much else to do here as far as Views is concerned. Under <strong>Block settings</strong>, click the <em>None</em> link next to <strong>Admin</strong> and fill in a description for the block in the administrative interface, such as: 'Recent blog entries by author.' and click <strong>Update</strong>.</li> <li>Save your work by clicking the <strong>Save</strong> button at the bottom of the Views interface. You should receive a message that the view has been saved.</li> <li>Next, navigate to the <a target="_blank" href="base_url:admin/structure/block">blocks interface</a> and drag the 'Recent blog entries by author' block to the right sidebar region (or similar) and click <strong>Save blocks</strong>.</li> <li>You'll notice this appeared to do nothing. No block shows in the sidebar. But remember, we are looking at an adminitrative page; we are not looking at a page that would provide a user ID context. Navigate to the <a target="_blank" href="base_url:blog">main blog listing</a> and click on an entry there. You should now see a sidebar block, titled something like "Recent entries by admin," with a list of blog entries beneath it.</li> </ol> <h3>Finishing touches</h3> <p>There are still a few remaining things to do before our view is complete. For example, we said that the block was to show <em>recent</em> blog entries, but instead it's showing them in the order they were entered, with oldest on top. Additionally, even unpublished entries are showing in the list currently.</p> <ol> <li>Return to the <a target="_blank" href="base_url:admin/structure/views/view/recent_blog_entries">recent_blog_entries view edit page</a>.</li> <li>Add an additional filter by clicking the <strong>+</strong> icon in the <strong>Filters</strong> section in the fourth column.</li> <li>Change <strong>Groups</strong> to <em>Node</em> and select <em>Node: Published</em>. Click <strong>Add</strong>.</li> <li>Under the <strong>Published</strong> selection, choose <em>Yes</em> and click <strong>Update</strong>.</li> <li>To handle sorting, locate the <strong>Sort criteria</strong> area, just above filters, and click the <strong>+</strong> icon there.</li> <li>Under <strong>Groups</strong>, again select <em>Node</em>. From the list of options, check <em>Node: Post date</em> and click <strong>Add</strong>.</li> <li>In the settings page, change <strong>Sort order</strong> to <em>Descending</em>. This will place the newer posts on top of the older ones. Click <strong>Update</strong> when finished.</li> <li>Finally, <strong>Save</strong> the view for your new settings to take effect.</li> </ol>
Close